Home
last modified time | relevance | path

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

12

/linux/rust/kernel/
H A Derror.rs203 pub struct Error(NonZeroI32); implementation
219 /// assert_eq!(Error::from_errno(-1), EPERM); in from() argument
101 pub struct Error(NonZeroI32); global() struct
103 impl Error { global() implementation
123 from_errno(errno: crate::ffi::c_int) -> Error from_errno() argument
139 try_from_errno(errno: crate::ffi::c_int) -> Option<Error> try_from_errno() argument
153 from_errno_unchecked(errno: crate::ffi::c_int) -> Error from_errno_unchecked() argument
218 impl From<AllocError> for Error { global() implementation
224 impl From<TryFromIntError> for Error { global() implementation
225 from(_: TryFromIntError) -> Error from() argument
230 impl From<Utf8Error> for Error { global() implementation
231 from(_: Utf8Error) -> Error from() argument
236 impl From<LayoutError> for Error { global() implementation
237 from(_: LayoutError) -> Error from() argument
242 impl From<fmt::Error> for Error { global() implementation
243 from(_: fmt::Error) -> Error from() argument
248 impl From<core::convert::Infallible> for Error { global() implementation
249 from(e: core::convert::Infallible) -> Error from() argument
[all...]
H A Dmaple_tree.rs603 impl From<InsertErrorKind> for Error { global() implementation
605 from(kind: InsertErrorKind) -> Error from() argument
614 impl<T> From<InsertError<T>> for Error { global() implementation
616 from(insert_err: InsertError<T>) -> Error from() argument
640 impl From<AllocErrorKind> for Error { global() implementation
642 from(kind: AllocErrorKind) -> Error from() argument
651 impl<T> From<AllocError<T>> for Error { global() implementation
653 from(insert_err: AllocError<T>) -> Error from() argument
[all...]
H A Dconfigfs.rs151 data: impl PinInit<Data, Error>, in new() argument
261 new( name: CString, item_type: &'static ItemType<Group<Data>, Data>, data: impl PinInit<Data, Error>, ) -> impl PinInit<Self, Error> new() argument
502 make_group(&self, name: &CStr) -> Result<impl PinInit<Group<Self::Child>, Error>> make_group() argument
H A Dregulator.rs68 pub struct Error<State: RegulatorState> { struct
70 pub error: kernel::error::Error, argument
73 pub regulator: Regulator<State>,
H A Dbitfield.rs571 type Error = u64; global() typedef
572 try_from(value: Bounded<u64, 4>) -> Result<Self, Self::Error> try_from() argument
H A Dpci.rs310 probe(dev: &Device<device::Core>, id_info: &Self::IdInfo) -> impl PinInit<Self, Error> probe() argument
501 type Error = kernel::error::Error; global() typedef
503 try_from(dev: &device::Device<Ctx>) -> Result<Self, Self::Error> try_from() argument
H A Dstr.rs422 impl From<core::ffi::FromBytesWithNulError> for Error { global() implementation
424 from(_: core::ffi::FromBytesWithNulError) -> Error from() argument
832 try_from_fmt(args: fmt::Arguments<'_>) -> Result<Self, Error> try_from_fmt() argument
887 type Error = AllocError; global() typedef
[all...]
H A Dplatform.rs561 type Error = kernel::error::Error; typedef
563 fn try_from(dev: &device::Device<Ctx>) -> Result<Self, Self::Error> { in try_from() argument
/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()
/linux/rust/kernel/alloc/kvec/
H A Derrors.rs17 impl<T> From<PushError<T>> for Error { global() implementation
18 from(_: PushError<T>) -> Error from() argument
34 impl From<RemoveError> for Error { global() implementation
35 from(_: RemoveError) -> Error from() argument
57 impl<T> From<InsertError<T>> for Error { global() implementation
58 from(_: InsertError<T>) -> Error from() argument
/linux/rust/zerocopy-derive/derive/
H A Dunaligned.rs11 pub(crate) fn derive_unaligned(ctx: &Ctx, _top_level: Trait) -> Result<TokenStream, Error> { in derive_unaligned() argument
24 fn derive_unaligned_struct(ctx: &Ctx, strct: &DataStruct) -> Result<TokenStream, Error> { in derive_unaligned_struct() argument
45 fn derive_unaligned_enum(ctx: &Ctx, enm: &DataEnum) -> Result<TokenStream, Error> { in derive_unaligned_enum() argument
64 fn derive_unaligned_union(ctx: &Ctx, unn: &DataUnion) -> Result<TokenStream, Error> { in derive_unaligned_union() argument
H A Dinto_bytes.rs14 pub(crate) fn derive_into_bytes(ctx: &Ctx, _top_level: Trait) -> Result<TokenStream, Error> { in derive_into_bytes() argument
21 derive_into_bytes_struct(ctx: &Ctx, strct: &DataStruct) -> Result<TokenStream, Error> derive_into_bytes_struct() argument
101 derive_into_bytes_enum(ctx: &Ctx, enm: &DataEnum) -> Result<TokenStream, Error> derive_into_bytes_enum() argument
116 derive_into_bytes_union(ctx: &Ctx, unn: &DataUnion) -> Result<TokenStream, Error> derive_into_bytes_union() argument
H A Dmod.rs18 derive_immutable(ctx: &Ctx, _top_level: Trait) -> Result<TokenStream, Error> derive_immutable() argument
32 derive_hash(ctx: &Ctx, _top_level: Trait) -> Result<TokenStream, Error> derive_hash() argument
60 derive_eq(ctx: &Ctx, _top_level: Trait) -> Result<TokenStream, Error> derive_eq() argument
94 derive_split_at(ctx: &Ctx, _top_level: Trait) -> Result<TokenStream, Error> derive_split_at() argument
H A Dfrom_bytes.rs91 pub(crate) fn derive_from_zeros(ctx: &Ctx, top_level: Trait) -> Result<TokenStream, Error> { in derive_from_zeros() argument
100 derive_from_bytes(ctx: &Ctx, top_level: Trait) -> Result<TokenStream, Error> derive_from_bytes() argument
113 derive_from_zeros_enum(ctx: &Ctx, enm: &DataEnum) -> Result<TokenStream, Error> derive_from_zeros_enum() argument
172 derive_from_bytes_enum(ctx: &Ctx, enm: &DataEnum) -> Result<TokenStream, Error> derive_from_bytes_enum() argument
[all...]
H A Dtry_from_bytes.rs201 derive_is_bit_valid( ctx: &Ctx, data: &DataEnum, repr: &EnumRepr, ) -> Result<TokenStream, Error> derive_is_bit_valid() argument
446 derive_try_from_bytes(ctx: &Ctx, top_level: Trait) -> Result<TokenStream, Error> derive_try_from_bytes() argument
566 derive_try_from_bytes_struct( ctx: &Ctx, strct: &DataStruct, top_level: Trait, ) -> Result<TokenStream, Error> derive_try_from_bytes_struct() argument
668 derive_try_from_bytes_enum( ctx: &Ctx, enm: &DataEnum, top_level: Trait, ) -> Result<TokenStream, Error> derive_try_from_bytes_enum() argument
[all...]
/linux/rust/pin-init/examples/
H A Dpthread_mutex.rs66 fn init_raw() -> impl PinInit<UnsafeCell<libc::pthread_mutex_t>, Error> { in new() argument
44 pub enum Error { global() enum
51 impl From<Infallible> for Error { global() implementation
58 impl From<AllocError> for Error { global() implementation
[all...]
/linux/samples/rust/
H A Drust_driver_auxiliary.rs38 probe(adev: &auxiliary::Device<Core>, _info: &Self::IdInfo) -> impl PinInit<Self, Error> probe() argument
72 probe(pdev: &pci::Device<Core>, _info: &Self::IdInfo) -> impl PinInit<Self, Error> probe() argument
114 init(module: &'static kernel::ThisModule) -> impl PinInit<Self, Error> init() argument
H A Drust_driver_usb.rs27 probe( intf: &usb::Interface<Core>, _id: &usb::DeviceId, _info: &Self::IdInfo, ) -> impl PinInit<Self, Error> probe() argument
H A Drust_driver_i2c.rs47 probe( idev: &i2c::I2cClient<Core>, info: Option<&Self::IdInfo>, ) -> impl PinInit<Self, Error> probe() argument
H A Drust_i2c_client.rs116 probe( pdev: &platform::Device<device::Core>, _info: Option<&Self::IdInfo>, ) -> impl PinInit<Self, Error> probe() argument
/linux/rust/zerocopy-derive/
H A Drepr.rs154 unaligned_validate_no_align_gt_1(&self) -> Result<(), Error> unaligned_validate_no_align_gt_1() argument
307 type Error = FromRawReprError<UnsupportedReprError>; global() typedef
345 type Error = FromRawReprError<UnsupportedReprError>; global() typedef
382 try_from_raw_reprs<'a, E, R: TryFrom<RawRepr, Error = FromRawReprError<E>>>( r: impl IntoIterator<Item = &'a Spanned<RawRepr>>, ) -> Result<Option<Spanned<R>>, Spanned<FromRawReprsError<E>>> try_from_raw_reprs() argument
435 impl From<Spanned<FromAttrsError>> for Error { global() implementation
436 from(err: Spanned<FromAttrsError>) -> Error from() argument
635 try_from<E, U>( u: Spanned<U>, ) -> Result<Spanned<T>, FromRawReprError<Spanned<E>>> where T: TryFrom<U, Error = FromRawReprError<E>>, try_from() argument
[all...]
/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/rust/kernel/block/mq/
H A Dtag_set.rs40 pub fn new(nr_hw_queues: u32, num_tags: u32, num_maps: u32) -> impl PinInit<Self, Error> { in new() argument
/linux/rust/kernel/fs/
H A Dfile.rs462 impl From<BadFdError> for Error { implementation
464 fn from(_: BadFdError) -> Error { in from()

12