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 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.Source§impl ValueTypeMarker for Error
impl ValueTypeMarker for Error
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)