pub enum NetworkFault {
ConnRefused,
ConnTimeout,
PacketDrop,
PacketDelay,
PacketCorrupt,
BandwidthLimit,
}Expand description
Types of network faults.
Variants§
ConnRefused
Connection refused.
ConnTimeout
Connection timeout.
PacketDrop
Packet dropped silently.
PacketDelay
Packet delay.
PacketCorrupt
Packet data corrupted.
BandwidthLimit
Bandwidth throttling based on bytes per second.
Trait Implementations§
Source§impl Clone for NetworkFault
impl Clone for NetworkFault
Source§fn clone(&self) -> NetworkFault
fn clone(&self) -> NetworkFault
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 NetworkFault
impl Debug for NetworkFault
Source§impl Default for NetworkFault
impl Default for NetworkFault
Source§fn default() -> NetworkFault
fn default() -> NetworkFault
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NetworkFault
impl<'de> Deserialize<'de> for NetworkFault
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
Source§impl PartialEq for NetworkFault
impl PartialEq for NetworkFault
Source§impl Serialize for NetworkFault
impl Serialize for NetworkFault
impl Copy for NetworkFault
impl Eq for NetworkFault
impl StructuralPartialEq for NetworkFault
Auto Trait Implementations§
impl Freeze for NetworkFault
impl RefUnwindSafe for NetworkFault
impl Send for NetworkFault
impl Sync for NetworkFault
impl Unpin for NetworkFault
impl UnsafeUnpin for NetworkFault
impl UnwindSafe for NetworkFault
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