#[repr(u32)]pub enum Error {
Show 15 variants
Internal = 1,
HermeticNetworkRealmNotRunning = 2,
InterfaceNotFound = 3,
StubNotRunning = 4,
InvalidArguments = 5,
ComponentNotFound = 6,
TimeoutExceeded = 7,
PingFailed = 8,
AddressNotAvailable = 9,
AddressInUse = 10,
AlreadyExists = 11,
AddressUnreachable = 12,
Dhcpv6ClientNotRunning = 13,
Dhcpv4ClientNotRunning = 14,
Dhcpv4ClientShutdownFailed = 15,
}
Expand description
Standard error codes for the Controller
protocol.
Variants§
Internal = 1
The controller encountered an unspecified error while performing the desired operation.
HermeticNetworkRealmNotRunning = 2
A hermetic network realm was expected to exist, but no such realm was found to be running.
InterfaceNotFound = 3
A network interface was expected to exist, but was not found.
StubNotRunning = 4
A stub was expected to exist, but was not found.
InvalidArguments = 5
At least one argument was not valid.
ComponentNotFound = 6
The relevant component was not found.
TimeoutExceeded = 7
The operation could not be performed within the specified timeout.
PingFailed = 8
A ping unexpectedly failed.
AddressNotAvailable = 9
The requested address is not available.
AddressInUse = 10
The requested address is in use.
AlreadyExists = 11
The resource already exists.
AddressUnreachable = 12
The target address is unreachable (e.g. no route exists to it).
Dhcpv6ClientNotRunning = 13
A DHCPv6 client was expected to be running, but none was found.
Dhcpv4ClientNotRunning = 14
A DHCPv4 client was expected to be running, but none was found.
Dhcpv4ClientShutdownFailed = 15
Failed to shutdown the DHCPv4 client.
Implementations§
source§impl Error
impl Error
pub fn from_primitive(prim: u32) -> Option<Self>
pub const fn into_primitive(self) -> u32
pub fn is_unknown(&self) -> bool
is_unknown
Trait Implementations§
source§impl<D: ResourceDialect> Decode<Error, D> for Error
impl<D: ResourceDialect> Decode<Error, D> for Error
source§impl Ord for Error
impl Ord for Error
source§impl PartialEq for Error
impl PartialEq for Error
source§impl PartialOrd for Error
impl PartialOrd for Error
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TypeMarker for Error
impl TypeMarker for Error
source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
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
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.impl Copy for Error
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)