pub enum OpenError {
InstanceNotFound,
BadMoniker,
InstanceNotResolved,
InstanceNotRunning,
FidlError,
NoSuchDir,
BadDirType,
InstanceDestroyed,
// some variants omitted
}
Expand description
Errors that can be returned by the OpenDirectory call.
Variants§
InstanceNotFound
Could not find an instance matching the given moniker.
BadMoniker
The given moniker could not be parsed.
InstanceNotResolved
The requested directory is available when the instance is resolved.
InstanceNotRunning
The requested directory is available when the instance is running.
Deprecation: the platform will stop emitting this error from version 19. The component will always be started if not already.
FidlError
Component manager’s open request on the directory returned a FIDL error.
NoSuchDir
The instance does not have a directory of this type.
BadDirType
The given directory type could not be parsed.
InstanceDestroyed
Instance matching moniker was destroyed.
Implementations§
Trait Implementations§
Source§impl<D> Decode<OpenError, D> for OpenErrorwhere
D: ResourceDialect,
impl<D> Decode<OpenError, D> for OpenErrorwhere
D: ResourceDialect,
Source§impl Ord for OpenError
impl Ord for OpenError
Source§impl PartialOrd for OpenError
impl PartialOrd for OpenError
Source§impl TypeMarker for OpenError
impl TypeMarker for OpenError
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 OpenError
impl ValueTypeMarker for OpenError
Source§type Borrowed<'a> = OpenError
type Borrowed<'a> = OpenError
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreSource§fn borrow(
value: &<OpenError as TypeMarker>::Owned,
) -> <OpenError as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<OpenError as TypeMarker>::Owned, ) -> <OpenError as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from
&Self::Owned
to Self::Borrowed
.impl Copy for OpenError
impl Eq for OpenError
impl StructuralPartialEq for OpenError
Auto Trait Implementations§
impl Freeze for OpenError
impl RefUnwindSafe for OpenError
impl Send for OpenError
impl Sync for OpenError
impl Unpin for OpenError
impl UnwindSafe for OpenError
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