| /linux/rust/kernel/ |
| H A D | error.rs | 203 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 D | maple_tree.rs | 603 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 D | configfs.rs | 151 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 D | regulator.rs | 68 pub struct Error<State: RegulatorState> { struct 70 pub error: kernel::error::Error, argument 73 pub regulator: Regulator<State>,
|
| H A D | bitfield.rs | 571 type Error = u64; global() typedef 572 try_from(value: Bounded<u64, 4>) -> Result<Self, Self::Error> try_from() argument
|
| H A D | pci.rs | 310 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 D | str.rs | 422 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 D | platform.rs | 561 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 D | error.rs | 102 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 D | meta.rs | 380 pub fn error(&self, msg: impl Display) -> Error { in error()
|
| /linux/rust/kernel/alloc/kvec/ |
| H A D | errors.rs | 17 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 D | unaligned.rs | 11 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 D | into_bytes.rs | 14 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 D | mod.rs | 18 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 D | from_bytes.rs | 91 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 D | try_from_bytes.rs | 201 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 D | pthread_mutex.rs | 66 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 D | rust_driver_auxiliary.rs | 38 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 D | rust_driver_usb.rs | 27 probe( intf: &usb::Interface<Core>, _id: &usb::DeviceId, _info: &Self::IdInfo, ) -> impl PinInit<Self, Error> probe() argument
|
| H A D | rust_driver_i2c.rs | 47 probe( idev: &i2c::I2cClient<Core>, info: Option<&Self::IdInfo>, ) -> impl PinInit<Self, Error> probe() argument
|
| H A D | rust_i2c_client.rs | 116 probe( pdev: &platform::Device<device::Core>, _info: Option<&Self::IdInfo>, ) -> impl PinInit<Self, Error> probe() argument
|
| /linux/rust/zerocopy-derive/ |
| H A D | repr.rs | 154 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 D | id.rs | 113 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 D | tag_set.rs | 40 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 D | file.rs | 462 impl From<BadFdError> for Error { implementation 464 fn from(_: BadFdError) -> Error { in from()
|