pub enum OpenError {
InstanceNotFound,
BadMoniker,
InstanceNotResolved,
InstanceNotRunning,
FidlError,
NoSuchDir,
BadDirType,
BadPath,
InstanceFailedToStart,
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.
BadPath
The given path could not be parsed by component manager.
InstanceFailedToStart
Serving the requested directory requires starting the instance, but the instance failed to start.
InstanceDestroyed
Instance matching moniker was destroyed.
Implementations§
Source§impl OpenError
impl OpenError
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<OpenError, D> for OpenError
impl<D: ResourceDialect> Decode<OpenError, D> for OpenError
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
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 OpenError
impl ValueTypeMarker for OpenError
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
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
)