pub enum ModelError {
Show 19 variants
BadPath,
MonikerError {
err: MonikerError,
},
UnexpectedComponentManagerMoniker,
RoutingError {
err: RoutingError,
},
OpenStorageFailed {
source_moniker: ExtendedMoniker,
moniker: Moniker,
path: String,
err: Status,
},
StorageError {
err: StorageError,
},
ComponentInstanceError {
err: ComponentInstanceError,
},
ServiceDirError {
moniker: Moniker,
err: VfsError,
},
OpenDirectoryError {
moniker: Moniker,
relative_path: String,
},
EventsError {
err: EventsError,
},
PolicyError {
err: PolicyError,
},
ComponentIdIndexError {
err: IndexError,
},
ActionError {
err: ActionError,
},
ResolveActionError {
err: ResolveActionError,
},
StartActionError {
err: StartActionError,
},
OpenOutgoingDirError {
err: OpenOutgoingDirError,
},
RouterError {
err: RouterError,
},
CapabilityProviderError {
err: CapabilityProviderError,
},
OpenError {
err: OpenError,
},
}
Expand description
Errors produced by Model
.
Variants§
BadPath
MonikerError
Fields
§
err: MonikerError
UnexpectedComponentManagerMoniker
RoutingError
Fields
§
err: RoutingError
OpenStorageFailed
StorageError
Fields
§
err: StorageError
ComponentInstanceError
Fields
§
err: ComponentInstanceError
ServiceDirError
OpenDirectoryError
EventsError
Fields
§
err: EventsError
PolicyError
Fields
§
err: PolicyError
ComponentIdIndexError
Fields
§
err: IndexError
ActionError
Fields
§
err: ActionError
ResolveActionError
Fields
§
err: ResolveActionError
StartActionError
Fields
§
err: StartActionError
OpenOutgoingDirError
Fields
RouterError
Fields
§
err: RouterError
CapabilityProviderError
Fields
OpenError
Implementations§
Source§impl ModelError
impl ModelError
pub fn instance_not_found(moniker: Moniker) -> ModelError
pub fn open_directory_error( moniker: Moniker, relative_path: impl Into<String>, ) -> ModelError
Trait Implementations§
Source§impl Clone for ModelError
impl Clone for ModelError
Source§fn clone(&self) -> ModelError
fn clone(&self) -> ModelError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ModelError
impl Debug for ModelError
Source§impl Display for ModelError
impl Display for ModelError
Source§impl Error for ModelError
impl Error for ModelError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl Explain for ModelError
impl Explain for ModelError
fn as_zx_status(&self) -> Status
Source§impl From<ActionError> for ModelError
impl From<ActionError> for ModelError
Source§fn from(source: ActionError) -> Self
fn from(source: ActionError) -> Self
Converts to this type from the input type.
Source§impl From<CapabilityProviderError> for ModelError
impl From<CapabilityProviderError> for ModelError
Source§fn from(source: CapabilityProviderError) -> Self
fn from(source: CapabilityProviderError) -> Self
Converts to this type from the input type.
Source§impl From<ComponentInstanceError> for ModelError
impl From<ComponentInstanceError> for ModelError
Source§impl From<EventsError> for ModelError
impl From<EventsError> for ModelError
Source§fn from(source: EventsError) -> Self
fn from(source: EventsError) -> Self
Converts to this type from the input type.
Source§impl From<IndexError> for ModelError
impl From<IndexError> for ModelError
Source§impl From<MonikerError> for ModelError
impl From<MonikerError> for ModelError
Source§impl From<OpenError> for ModelError
impl From<OpenError> for ModelError
Source§impl From<OpenOutgoingDirError> for ModelError
impl From<OpenOutgoingDirError> for ModelError
Source§fn from(source: OpenOutgoingDirError) -> Self
fn from(source: OpenOutgoingDirError) -> Self
Converts to this type from the input type.
Source§impl From<PolicyError> for ModelError
impl From<PolicyError> for ModelError
Source§impl From<ResolveActionError> for ModelError
impl From<ResolveActionError> for ModelError
Source§fn from(source: ResolveActionError) -> Self
fn from(source: ResolveActionError) -> Self
Converts to this type from the input type.
Source§impl From<RouterError> for ModelError
impl From<RouterError> for ModelError
Source§impl From<RoutingError> for ModelError
impl From<RoutingError> for ModelError
Source§impl From<StartActionError> for ModelError
impl From<StartActionError> for ModelError
Source§fn from(source: StartActionError) -> Self
fn from(source: StartActionError) -> Self
Converts to this type from the input type.
Source§impl From<StorageError> for ModelError
impl From<StorageError> for ModelError
Source§fn from(source: StorageError) -> Self
fn from(source: StorageError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ModelError
impl !RefUnwindSafe for ModelError
impl Send for ModelError
impl Sync for ModelError
impl Unpin for ModelError
impl !UnwindSafe for ModelError
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
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)