pub enum ControllerError {
InterfaceNotFound,
InterfaceNotSupported,
NeighborNotFound,
InvalidIpAddress,
MacAddressNotUnicast,
LinkAddressUnknown,
// some variants omitted
}Expand description
Errors associated with the neighbor table Controller protocol.
Variants§
InterfaceNotFound
The specified interface does not exist.
InterfaceNotSupported
The specified interface does not keep a neighbor table (e.g. point-to-point links).
NeighborNotFound
The specified neighbor does not exist in the provided interface’s neighbor table.
InvalidIpAddress
The provided IP address is not a valid neighbor address.
MacAddressNotUnicast
The provided MAC address is not a unicast MAC address.
LinkAddressUnknown
A probe cannot be manually triggered against the specified neighbor because its link address is not known.
Implementations§
Source§impl ControllerError
impl ControllerError
pub fn from_primitive(prim: u32) -> Option<ControllerError>
pub fn from_primitive_allow_unknown(prim: u32) -> ControllerError
pub fn unknown() -> ControllerError
pub const fn into_primitive(self) -> u32
pub fn is_unknown(&self) -> bool
Trait Implementations§
Source§impl Clone for ControllerError
impl Clone for ControllerError
Source§fn clone(&self) -> ControllerError
fn clone(&self) -> ControllerError
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 ControllerError
impl Debug for ControllerError
Source§impl<D> Decode<ControllerError, D> for ControllerErrorwhere
D: ResourceDialect,
impl<D> Decode<ControllerError, D> for ControllerErrorwhere
D: ResourceDialect,
Source§fn new_empty() -> ControllerError
fn new_empty() -> ControllerError
Creates a valid instance of
Self. The specific value does not matter,
since it will be overwritten by decode.Source§impl<D> Encode<ControllerError, D> for ControllerErrorwhere
D: ResourceDialect,
impl<D> Encode<ControllerError, D> for ControllerErrorwhere
D: ResourceDialect,
Source§impl Hash for ControllerError
impl Hash for ControllerError
Source§impl Ord for ControllerError
impl Ord for ControllerError
Source§fn cmp(&self, other: &ControllerError) -> Ordering
fn cmp(&self, other: &ControllerError) -> 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 ControllerError
impl PartialEq for ControllerError
Source§impl PartialOrd for ControllerError
impl PartialOrd for ControllerError
Source§impl TypeMarker for ControllerError
impl TypeMarker for ControllerError
Source§type Owned = ControllerError
type Owned = ControllerError
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 ControllerError
impl ValueTypeMarker for ControllerError
Source§type Borrowed<'a> = ControllerError
type Borrowed<'a> = ControllerError
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: &<ControllerError as TypeMarker>::Owned,
) -> <ControllerError as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<ControllerError as TypeMarker>::Owned, ) -> <ControllerError as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from
&Self::Owned to Self::Borrowed.impl Copy for ControllerError
impl Eq for ControllerError
impl StructuralPartialEq for ControllerError
Auto Trait Implementations§
impl Freeze for ControllerError
impl RefUnwindSafe for ControllerError
impl Send for ControllerError
impl Sync for ControllerError
impl Unpin for ControllerError
impl UnsafeUnpin for ControllerError
impl UnwindSafe for ControllerError
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