pub enum DispatchAnswer {
Allow {
answers: ContentDigest,
reference: AuthorizationReference,
valid_for_ms: u64,
},
Refuse {
reference: Option<AuthorizationReference>,
detail: String,
},
}Expand description
The host’s answer about one proposed attempt. In process only: it is neither serializable nor clonable, the runtime keeps nothing of it but the reference, and it authorizes no action outside that one dispatch.
Variants§
Allow
Send exactly the attempt whose request digest is answers, if it is
sent within valid_for_ms of the question, by the runtime’s clock.
Refuse
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DispatchAnswer
impl RefUnwindSafe for DispatchAnswer
impl Send for DispatchAnswer
impl Sync for DispatchAnswer
impl Unpin for DispatchAnswer
impl UnsafeUnpin for DispatchAnswer
impl UnwindSafe for DispatchAnswer
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