pub enum NetworkGateError {
Denied {
host: String,
tool: String,
},
PromptRequired {
host: String,
tool: String,
},
}Expand description
Policy gate failure for an outbound network call.
Variants§
Implementations§
Source§impl NetworkGateError
impl NetworkGateError
pub fn denial_message(&self) -> String
Trait Implementations§
Source§impl Clone for NetworkGateError
impl Clone for NetworkGateError
Source§fn clone(&self) -> NetworkGateError
fn clone(&self) -> NetworkGateError
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 NetworkGateError
impl Debug for NetworkGateError
impl Eq for NetworkGateError
Source§impl PartialEq for NetworkGateError
impl PartialEq for NetworkGateError
Source§fn eq(&self, other: &NetworkGateError) -> bool
fn eq(&self, other: &NetworkGateError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NetworkGateError
Auto Trait Implementations§
impl Freeze for NetworkGateError
impl RefUnwindSafe for NetworkGateError
impl Send for NetworkGateError
impl Sync for NetworkGateError
impl Unpin for NetworkGateError
impl UnsafeUnpin for NetworkGateError
impl UnwindSafe for NetworkGateError
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.