Enum fidl_fuchsia_component::Error
source · #[repr(u32)]pub enum Error {
Show 14 variants
Internal = 1,
InvalidArguments = 2,
Unsupported = 3,
AccessDenied = 4,
InstanceNotFound = 5,
InstanceAlreadyExists = 6,
InstanceCannotStart = 7,
InstanceCannotResolve = 8,
CollectionNotFound = 9,
ResourceUnavailable = 10,
InstanceDied = 11,
ResourceNotFound = 12,
InstanceCannotUnresolve = 13,
InstanceAlreadyStarted = 14,
}
Expand description
Standard error codes for component framework protocols.
Variants§
Internal = 1
Component manager encountered an otherwise unspecified error while performing the operation.
InvalidArguments = 2
At least one argument had an invalid format.
Unsupported = 3
The feature is not yet supported.
AccessDenied = 4
The caller did not have permission to perform the specified operation, or one of the handles provided to the call had insufficient rights.
InstanceNotFound = 5
The component instance was not found.
InstanceAlreadyExists = 6
The component instance already exists.
InstanceCannotStart = 7
The component instance could not be started.
InstanceCannotResolve = 8
Failed to resolve the component’s declaration.
CollectionNotFound = 9
The component collection was not found.
There were insufficient resources to perform the operation.
InstanceDied = 11
The component instance died unexpectedly.
ResourceNotFound = 12
The requested resource does not exist.
InstanceCannotUnresolve = 13
Failed to unresolve the component.
InstanceAlreadyStarted = 14
The component instance has already been started.
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 Decode<Error> for Error
impl Decode<Error> 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.