Enum Error
pub enum Error {
Show 14 variants
Internal,
InvalidArguments,
Unsupported,
AccessDenied,
InstanceNotFound,
InstanceAlreadyExists,
InstanceCannotStart,
InstanceCannotResolve,
CollectionNotFound,
ResourceUnavailable,
InstanceDied,
ResourceNotFound,
InstanceCannotUnresolve,
InstanceAlreadyStarted,
// some variants omitted
}
Expand description
Standard error codes for component framework protocols.
Variants§
Internal
Component manager encountered an otherwise unspecified error while performing the operation.
InvalidArguments
At least one argument had an invalid format.
Unsupported
The feature is not yet supported.
AccessDenied
The caller did not have permission to perform the specified operation, or one of the handles provided to the call had insufficient rights.
InstanceNotFound
The component instance was not found.
InstanceAlreadyExists
The component instance already exists.
InstanceCannotStart
The component instance could not be started.
InstanceCannotResolve
Failed to resolve the component’s declaration.
CollectionNotFound
The component collection was not found.
There were insufficient resources to perform the operation.
InstanceDied
The component instance died unexpectedly.
ResourceNotFound
The requested resource does not exist.
InstanceCannotUnresolve
Failed to unresolve the component.
InstanceAlreadyStarted
The component instance has already been started.
Implementations§
§impl Error
impl Error
pub fn from_primitive(prim: u32) -> Option<Error>
pub fn from_primitive_allow_unknown(prim: u32) -> Error
pub fn unknown() -> Error
pub const fn into_primitive(self) -> u32
pub fn is_unknown(&self) -> bool
Trait Implementations§
§impl<D> Decode<Error, D> for Errorwhere
D: ResourceDialect,
impl<D> Decode<Error, D> for Errorwhere
D: ResourceDialect,
§impl Ord for Error
impl Ord for Error
§impl PartialOrd for Error
impl PartialOrd for Error
§impl TypeMarker for Error
impl TypeMarker for Error
§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§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 more§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.