Enum fidl_fuchsia_component::Error
source · #[repr(u32)]pub enum Error {
Show 13 variants
Internal,
InvalidArguments,
Unsupported,
AccessDenied,
InstanceNotFound,
InstanceAlreadyExists,
InstanceCannotStart,
InstanceCannotResolve,
CollectionNotFound,
ResourceUnavailable,
InstanceDied,
ResourceNotFound,
InstanceCannotUnresolve,
}
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.
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
👎Deprecated: Strict enums should not use
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<Error> for Error
impl PartialEq<Error> for Error
source§impl PartialOrd<Error> for Error
impl PartialOrd<Error> for Error
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
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
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 Error
impl ValueTypeMarker for Error
impl Copy for Error
impl Eq for Error
impl StructuralEq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
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
Mutably borrows from an owned value. Read more