#[repr(u8)]pub enum RequestMode {
    None = 0,
    Notify = 1,
    Intercept = 2,
    NotifyLog = 3,
    InterceptLog = 4,
    Disabled = 5,
}Expand description
Request mode for all data related requests.
Variants§
None = 0
We don’t get request events at all.
Notify = 1
We get a notification for each request, but no transfer events.
Intercept = 2
We get a request for each request, and can reject incoming requests, but no transfer events.
NotifyLog = 3
We get a notification for each request as well as detailed transfer events.
InterceptLog = 4
We get a request for each request, and can reject incoming requests. We also get detailed transfer events.
Disabled = 5
This request type is completely disabled. All requests will be rejected.
This means that requests of this kind will always be rejected, whereas None means that we don’t get any events, but requests will be processed normally.
Trait Implementations§
Source§impl Clone for RequestMode
 
impl Clone for RequestMode
Source§fn clone(&self) -> RequestMode
 
fn clone(&self) -> RequestMode
Returns a duplicate of the value. Read more
1.0.0 · 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 RequestMode
 
impl Debug for RequestMode
Source§impl Default for RequestMode
 
impl Default for RequestMode
Source§fn default() -> RequestMode
 
fn default() -> RequestMode
Returns the “default value” for a type. Read more
Source§impl PartialEq for RequestMode
 
impl PartialEq for RequestMode
impl Copy for RequestMode
impl Eq for RequestMode
impl StructuralPartialEq for RequestMode
Auto Trait Implementations§
impl Freeze for RequestMode
impl RefUnwindSafe for RequestMode
impl Send for RequestMode
impl Sync for RequestMode
impl Unpin for RequestMode
impl UnwindSafe for RequestMode
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,
§impl<T> CompatExt for T
 
impl<T> CompatExt for T
§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.