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: MonikerErrorUnexpectedComponentManagerMoniker
RoutingError
Fields
§
err: RoutingErrorOpenStorageFailed
StorageError
Fields
§
err: StorageErrorComponentInstanceError
Fields
ServiceDirError
OpenDirectoryError
EventsError
Fields
§
err: EventsErrorPolicyError
Fields
§
err: PolicyErrorComponentIdIndexError
Fields
§
err: IndexErrorActionError
Fields
§
err: ActionErrorResolveActionError
Fields
§
err: ResolveActionErrorStartActionError
Fields
§
err: StartActionErrorOpenOutgoingDirError
Fields
RouterError
Fields
§
err: RouterErrorCapabilityProviderError
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 duplicate 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§fn from(source: ComponentInstanceError) -> Self
fn from(source: ComponentInstanceError) -> Self
Converts to this type from the input type.
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§fn from(source: IndexError) -> Self
fn from(source: IndexError) -> Self
Converts to this type from the input type.
Source§impl From<MonikerError> for ModelError
impl From<MonikerError> for ModelError
Source§fn from(source: MonikerError) -> Self
fn from(source: MonikerError) -> Self
Converts to this type from the input type.
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§fn from(source: PolicyError) -> Self
fn from(source: PolicyError) -> Self
Converts to this type from the input type.
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§fn from(source: RouterError) -> Self
fn from(source: RouterError) -> Self
Converts to this type from the input type.
Source§impl From<RoutingError> for ModelError
impl From<RoutingError> for ModelError
Source§fn from(source: RoutingError) -> Self
fn from(source: RoutingError) -> Self
Converts to this type from the input type.
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§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> IntoAny for T
impl<T> IntoAny for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more