pub enum ResponseType {
Show 15 variants
    None,
    Err(NetworkError),
    Duration(Duration),
    Amount(u64),
    Flag(bool),
    IpAddressList(Vec<IpAddr>),
    IpAddress(IpAddr),
    SocketAddrList(Vec<SocketAddr>),
    SocketAddr(SocketAddr),
    Mac([u8; 6]),
    CidrList(Vec<IpCidr>),
    RouteList(Vec<IpRoute>),
    Socket(SocketId),
    Ttl(u32),
    Status(SocketStatus),
}Variants§
None
Nothing is returned (or noop)
Err(NetworkError)
An error has occurred
Duration(Duration)
Represents a duration of time
Amount(u64)
Represents an amount (e.g. amount of bytes)
Flag(bool)
Returns a flag of true or false
IpAddressList(Vec<IpAddr>)
List of IP addresses
IpAddress(IpAddr)
A single IP address
SocketAddrList(Vec<SocketAddr>)
List of socket addresses
SocketAddr(SocketAddr)
A single IP address
Mac([u8; 6])
Represents a MAC address
CidrList(Vec<IpCidr>)
List of CIDR routes from a routing table
RouteList(Vec<IpRoute>)
List of IP routes from a routing table
Socket(SocketId)
Reference to a socket
Ttl(u32)
The TTL of a packet
Status(SocketStatus)
The status of the socket
Trait Implementations§
Source§impl Clone for ResponseType
 
impl Clone for ResponseType
Source§fn clone(&self) -> ResponseType
 
fn clone(&self) -> ResponseType
Returns a copy 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 ResponseType
 
impl Debug for ResponseType
Source§impl<'de> Deserialize<'de> for ResponseType
 
impl<'de> Deserialize<'de> for ResponseType
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
Auto Trait Implementations§
impl Freeze for ResponseType
impl RefUnwindSafe for ResponseType
impl Send for ResponseType
impl Sync for ResponseType
impl Unpin for ResponseType
impl UnwindSafe for ResponseType
Blanket Implementations§
§impl<T> ArchivePointee for T
 
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
 
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
    _: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
 
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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> Instrument for T
 
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
§impl<T> LayoutRaw for T
 
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
 
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.