pub enum HostRequestDecision {
Granted {
by: HostDecisionAuthority,
},
Denied {
by: HostDecisionAuthority,
},
Deferred,
}Expand description
A typed answer to “what happened to this host request” – see
ProviderEvent::HostRequestObserved. Mirrors gate4agent’s own
HostRequestDecision one-for-one; see HostDecisionAuthority’s doc
comment for why this crate keeps its own copy rather than importing it.
Variants§
Granted
The request was allowed. by is who made that call.
Fields
Denied
The request was refused. by is who made that call.
Fields
Deferred
The request has arrived and been recorded, but nothing has decided
it yet. A later ProviderEvent::HostRequestObserved reports the
eventual Granted/Denied outcome once one exists.
Trait Implementations§
Source§impl Clone for HostRequestDecision
impl Clone for HostRequestDecision
impl Copy for HostRequestDecision
Source§impl Debug for HostRequestDecision
impl Debug for HostRequestDecision
Source§impl<'de> Deserialize<'de> for HostRequestDecision
impl<'de> Deserialize<'de> for HostRequestDecision
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for HostRequestDecision
Source§impl PartialEq for HostRequestDecision
impl PartialEq for HostRequestDecision
Source§impl Serialize for HostRequestDecision
impl Serialize for HostRequestDecision
impl StructuralPartialEq for HostRequestDecision
Auto Trait Implementations§
impl Freeze for HostRequestDecision
impl RefUnwindSafe for HostRequestDecision
impl Send for HostRequestDecision
impl Sync for HostRequestDecision
impl Unpin for HostRequestDecision
impl UnsafeUnpin for HostRequestDecision
impl UnwindSafe for HostRequestDecision
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