Enum fidl_fuchsia_sys2::OpenError
source · 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 PartialEq for OpenError
impl PartialEq for OpenError
source§impl PartialOrd for OpenError
impl PartialOrd for OpenError
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 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§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
)