Enum fidl_fuchsia_component::Error
source · 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§
source§impl Error
impl Error
pub fn from_primitive(prim: u32) -> Option<Self>
pub fn from_primitive_allow_unknown(prim: u32) -> Self
pub fn unknown() -> Self
pub const fn into_primitive(self) -> u32
pub fn is_unknown(&self) -> bool
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
)