pub enum CensorResult {
Allowed,
Blocked(String),
Throttled(String),
Reset(String),
}Expand description
Result of censorship check.
Variants§
Allowed
Packet passed through unmodified.
Blocked(String)
Packet was blocked.
Throttled(String)
Packet was throttled (reduced bandwidth).
Reset(String)
Connection was reset via TCP RST.
Trait Implementations§
Source§impl Clone for CensorResult
impl Clone for CensorResult
Source§fn clone(&self) -> CensorResult
fn clone(&self) -> CensorResult
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 CensorResult
impl Debug for CensorResult
Source§impl PartialEq for CensorResult
impl PartialEq for CensorResult
impl Eq for CensorResult
impl StructuralPartialEq for CensorResult
Auto Trait Implementations§
impl Freeze for CensorResult
impl RefUnwindSafe for CensorResult
impl Send for CensorResult
impl Sync for CensorResult
impl Unpin for CensorResult
impl UnsafeUnpin for CensorResult
impl UnwindSafe for CensorResult
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