Home
last modified time | relevance | path

Searched defs:Error (Results 1 – 25 of 40) sorted by relevance

12

/linux/rust/kernel/
H A Derror.rs101 pub struct Error(NonZeroI32); struct
103 impl Error { impl
123 pub fn from_errno(errno: crate::ffi::c_int) -> Error { in from_errno()
139 const fn try_from_errno(errno: crate::ffi::c_int) -> Option<Error> { in try_from_errno()
153 const unsafe fn from_errno_unchecked(errno: crate::ffi::c_int) -> Error { in from_errno_unchecked()
203 impl fmt::Debug for Error { implementation
218 impl From<AllocError> for Error { implementation
219 fn from(_: AllocError) -> Error { in from()
224 impl From<TryFromIntError> for Error { implementation
225 fn from(_: TryFromIntError) -> Error { in from()
[all …]
H A Dmaple_tree.rs594 impl From<InsertErrorKind> for Error { implementation
596 fn from(kind: InsertErrorKind) -> Error { in from()
605 impl<T> From<InsertError<T>> for Error { implementation
607 fn from(insert_err: InsertError<T>) -> Error { in from()
631 impl From<AllocErrorKind> for Error { implementation
633 fn from(kind: AllocErrorKind) -> Error { in from()
642 impl<T> From<AllocError<T>> for Error { implementation
644 fn from(insert_err: AllocError<T>) -> Error { in from()
H A Dconfigfs.rs151 data: impl PinInit<Data, Error>, in new() argument
261 data: impl PinInit<Data, Error>, in new() argument
502 fn make_group(&self, name: &CStr) -> Result<impl PinInit<Group<Self::Child>, Error>>; in make_group() argument
H A Dregulator.rs65 pub struct Error<State: RegulatorState> { struct
67 pub error: kernel::error::Error, argument
70 pub regulator: Regulator<State>,
H A Dplatform.rs197 ) -> impl PinInit<Self, Error>; in probe() argument
508 type Error = kernel::error::Error; typedef
510 fn try_from(dev: &device::Device<Ctx>) -> Result<Self, Self::Error> { in try_from() argument
H A Dpci.rs294 fn probe(dev: &Device<device::Core>, id_info: &Self::IdInfo) -> impl PinInit<Self, Error>; in probe() argument
485 type Error = kernel::error::Error; typedef
487 fn try_from(dev: &device::Device<Ctx>) -> Result<Self, Self::Error> { in try_from() argument
H A Di2c.rs329 ) -> impl PinInit<Self, Error>; in probe() argument
511 type Error = kernel::error::Error; typedef
513 fn try_from(dev: &device::Device<Ctx>) -> Result<Self, Self::Error> { in try_from() argument
H A Dstr.rs406 impl From<core::ffi::FromBytesWithNulError> for Error { implementation
408 fn from(_: core::ffi::FromBytesWithNulError) -> Error { in from()
816 pub fn try_from_fmt(args: fmt::Arguments<'_>) -> Result<Self, Error> { in try_from_fmt() argument
868 type Error = AllocError; typedef
H A Dlib.rs183 fn init(module: &'static ThisModule) -> impl pin_init::PinInit<Self, error::Error>; in init()
187 fn init(module: &'static ThisModule) -> impl pin_init::PinInit<Self, error::Error> { in init()
/linux/rust/syn/
H A Derror.rs102 pub struct Error { struct
103 messages: Vec<ErrorMessage>, argument
129 impl Error { implementation
163 fn new(span: Span, message: String) -> Error { in new()
194 fn new_spanned(tokens: TokenStream, message: String) -> Error { in new_spanned()
272 pub fn combine(&mut self, another: Error) { in combine()
329 pub(crate) fn new_at<T: Display>(scope: Span, cursor: Cursor, message: T) -> Error { in new_at()
339 pub(crate) fn new2<T: Display>(start: Span, end: Span, message: T) -> Error { in new2()
342 fn new2(start: Span, end: Span, message: String) -> Error { in new2()
352 impl Debug for Error { implementation
[all …]
H A Dmeta.rs380 pub fn error(&self, msg: impl Display) -> Error { in error()
H A Dparse.rs373 pub fn error<T: Display>(self, message: T) -> Error { in error()
1007 pub fn error<T: Display>(&self, message: T) -> Error { in error()
1329 fn err_unexpected_token(span: Span, delimiter: Delimiter) -> Error { in err_unexpected_token()
/linux/rust/kernel/alloc/kvec/
H A Derrors.rs17 impl<T> From<PushError<T>> for Error { implementation
18 fn from(_: PushError<T>) -> Error { in from()
34 impl From<RemoveError> for Error { implementation
35 fn from(_: RemoveError) -> Error { in from()
57 impl<T> From<InsertError<T>> for Error { implementation
58 fn from(_: InsertError<T>) -> Error { in from()
/linux/rust/pin-init/examples/
H A Dpthread_mutex.rs44 pub enum Error { enum
51 impl From<Infallible> for Error { implementation
58 impl From<AllocError> for Error { implementation
66 pub fn new(data: T) -> impl PinInit<Self, Error> { in new() argument
/linux/samples/rust/
H A Drust_driver_auxiliary.rs38 fn probe(adev: &auxiliary::Device<Core>, _info: &Self::IdInfo) -> impl PinInit<Self, Error> { in probe() argument
72 fn probe(pdev: &pci::Device<Core>, _info: &Self::IdInfo) -> impl PinInit<Self, Error> { in probe() argument
114 fn init(module: &'static kernel::ThisModule) -> impl PinInit<Self, Error> { in init() argument
H A Drust_driver_usb.rs27 ) -> impl PinInit<Self, Error> { in probe() argument
H A Drust_driver_i2c.rs47 ) -> impl PinInit<Self, Error> { in probe() argument
H A Drust_i2c_client.rs116 ) -> impl PinInit<Self, Error> { in probe() argument
H A Drust_driver_platform.rs106 ) -> impl PinInit<Self, Error> { in probe() argument
/linux/rust/kernel/pci/
H A Did.rs113 type Error = Error; typedef
115 fn try_from(value: u32) -> Result<Self, Self::Error> { in try_from() argument
/linux/drivers/block/rnull/
H A Dconfigfs.rs52 ) -> Result<impl PinInit<configfs::Group<DeviceConfig>, Error>> { in make_group() argument
92 type Error = kernel::error::Error; typedef
/linux/rust/kernel/block/mq/
H A Dtag_set.rs40 ) -> impl PinInit<Self, error::Error> { in new()
/linux/drivers/gpu/nova-core/
H A Ddriver.rs72 fn probe(pdev: &pci::Device<Core>, _info: &Self::IdInfo) -> impl PinInit<Self, Error> { in probe() argument
/linux/rust/kernel/fs/
H A Dfile.rs462 impl From<BadFdError> for Error { implementation
464 fn from(_: BadFdError) -> Error { in from()
/linux/drivers/gpu/drm/nova/
H A Ddriver.rs48 fn probe(adev: &auxiliary::Device<Core>, _info: &Self::IdInfo) -> impl PinInit<Self, Error> { in probe() argument

12