pub enum OffdeviceDecision {
Allow,
Veto {
reason: String,
},
}Expand description
What an OffdeviceCallHook tells the producer to do.
Variants§
Allow
Proceed with the network call. The default outcome.
Veto
Skip the network call. The producer surfaces a structured error
to its caller — for summarizers, this becomes
SummarizerError::Provider("off-device call vetoed: <reason>").
Trait Implementations§
Source§impl Clone for OffdeviceDecision
impl Clone for OffdeviceDecision
Source§fn clone(&self) -> OffdeviceDecision
fn clone(&self) -> OffdeviceDecision
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 OffdeviceDecision
impl Debug for OffdeviceDecision
Source§impl<'de> Deserialize<'de> for OffdeviceDecision
impl<'de> Deserialize<'de> for OffdeviceDecision
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 OffdeviceDecision
Source§impl PartialEq for OffdeviceDecision
impl PartialEq for OffdeviceDecision
Source§fn eq(&self, other: &OffdeviceDecision) -> bool
fn eq(&self, other: &OffdeviceDecision) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for OffdeviceDecision
impl Serialize for OffdeviceDecision
impl StructuralPartialEq for OffdeviceDecision
Auto Trait Implementations§
impl Freeze for OffdeviceDecision
impl RefUnwindSafe for OffdeviceDecision
impl Send for OffdeviceDecision
impl Sync for OffdeviceDecision
impl Unpin for OffdeviceDecision
impl UnsafeUnpin for OffdeviceDecision
impl UnwindSafe for OffdeviceDecision
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