#[repr(u32)]pub enum RegisterEbpfProgramError {
LinkFailed = 1,
MapFailed = 2,
AlreadyRegistered = 3,
MissingRequiredField = 4,
}Variants§
LinkFailed = 1
MapFailed = 2
Failed to initialize a map.
AlreadyRegistered = 3
The program is already registered.
MissingRequiredField = 4
The request is missing a required field.
Implementations§
Source§impl RegisterEbpfProgramError
impl RegisterEbpfProgramError
pub fn from_primitive(prim: u32) -> Option<RegisterEbpfProgramError>
pub const fn into_primitive(self) -> u32
Trait Implementations§
Source§impl Clone for RegisterEbpfProgramError
impl Clone for RegisterEbpfProgramError
Source§fn clone(&self) -> RegisterEbpfProgramError
fn clone(&self) -> RegisterEbpfProgramError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RegisterEbpfProgramError
impl Debug for RegisterEbpfProgramError
Source§impl<D> Decode<RegisterEbpfProgramError, D> for RegisterEbpfProgramErrorwhere
D: ResourceDialect,
impl<D> Decode<RegisterEbpfProgramError, D> for RegisterEbpfProgramErrorwhere
D: ResourceDialect,
Source§fn new_empty() -> RegisterEbpfProgramError
fn new_empty() -> RegisterEbpfProgramError
Creates a valid instance of
Self. The specific value does not matter,
since it will be overwritten by decode.Source§impl<D> Encode<RegisterEbpfProgramError, D> for RegisterEbpfProgramErrorwhere
D: ResourceDialect,
impl<D> Encode<RegisterEbpfProgramError, D> for RegisterEbpfProgramErrorwhere
D: ResourceDialect,
Source§impl Hash for RegisterEbpfProgramError
impl Hash for RegisterEbpfProgramError
Source§impl Ord for RegisterEbpfProgramError
impl Ord for RegisterEbpfProgramError
Source§fn cmp(&self, other: &RegisterEbpfProgramError) -> Ordering
fn cmp(&self, other: &RegisterEbpfProgramError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for RegisterEbpfProgramError
impl PartialEq for RegisterEbpfProgramError
Source§impl PartialOrd for RegisterEbpfProgramError
impl PartialOrd for RegisterEbpfProgramError
Source§impl TypeMarker for RegisterEbpfProgramError
impl TypeMarker for RegisterEbpfProgramError
Source§type Owned = RegisterEbpfProgramError
type Owned = RegisterEbpfProgramError
The owned Rust type which this FIDL type decodes into.
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned to a single memcpy.Source§impl ValueTypeMarker for RegisterEbpfProgramError
impl ValueTypeMarker for RegisterEbpfProgramError
Source§type Borrowed<'a> = RegisterEbpfProgramError
type Borrowed<'a> = RegisterEbpfProgramError
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned. There are three cases: Read moreSource§fn borrow(
value: &<RegisterEbpfProgramError as TypeMarker>::Owned,
) -> <RegisterEbpfProgramError as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<RegisterEbpfProgramError as TypeMarker>::Owned, ) -> <RegisterEbpfProgramError as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from
&Self::Owned to Self::Borrowed.impl Copy for RegisterEbpfProgramError
impl Eq for RegisterEbpfProgramError
impl StructuralPartialEq for RegisterEbpfProgramError
Auto Trait Implementations§
impl Freeze for RegisterEbpfProgramError
impl RefUnwindSafe for RegisterEbpfProgramError
impl Send for RegisterEbpfProgramError
impl Sync for RegisterEbpfProgramError
impl Unpin for RegisterEbpfProgramError
impl UnwindSafe for RegisterEbpfProgramError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more