#[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 PartialOrd for Error
impl PartialOrd for Error
Source§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.