pub enum HostResourceOutcome {
Unknown,
Open,
Failed(String),
Closed,
Unsupported(String),
}Expand description
Host-observed resource outcome carried by a canonical status input.
Variants§
Unknown
The host has not reported a resource outcome.
Open
The resource is live according to the host.
Failed(String)
The resource failed outside graph propagation.
Closed
The resource is closed according to the host.
Unsupported(String)
The host cannot apply the requested transition.
Implementations§
Source§impl HostResourceOutcome
impl HostResourceOutcome
Sourcepub const fn category(&self) -> ErrorCategory
pub const fn category(&self) -> ErrorCategory
Returns the model category for host-reported resource status.
Trait Implementations§
Source§impl Clone for HostResourceOutcome
impl Clone for HostResourceOutcome
Source§fn clone(&self) -> HostResourceOutcome
fn clone(&self) -> HostResourceOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HostResourceOutcome
impl Debug for HostResourceOutcome
impl Eq for HostResourceOutcome
Source§impl PartialEq for HostResourceOutcome
impl PartialEq for HostResourceOutcome
Source§fn eq(&self, other: &HostResourceOutcome) -> bool
fn eq(&self, other: &HostResourceOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HostResourceOutcome
Auto Trait Implementations§
impl Freeze for HostResourceOutcome
impl RefUnwindSafe for HostResourceOutcome
impl Send for HostResourceOutcome
impl Sync for HostResourceOutcome
impl Unpin for HostResourceOutcome
impl UnsafeUnpin for HostResourceOutcome
impl UnwindSafe for HostResourceOutcome
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