pub enum IpSocketMatcher {
Family(IpVersion),
SrcAddr(BoundAddress),
DstAddr(BoundAddress),
Proto(SocketTransportProtocol),
BoundInterface(BoundInterface),
Cookie(SocketCookie),
Mark(MarkInDomain),
}Expand description
An extension type for [fnet_sockets::IpSocketMatcher].
Variants§
Family(IpVersion)
Matches against the IP version of the socket.
SrcAddr(BoundAddress)
Matches against the source address of the socket.
DstAddr(BoundAddress)
Matches against the destination address of the socket.
Proto(SocketTransportProtocol)
Matches against transport protocol fields of the socket.
BoundInterface(BoundInterface)
Matches against the (bound, i.e. SO_BINDTODEVICE) interface of the socket.
Cookie(SocketCookie)
Matches against the cookie of the socket (i.e. SO_COOKIE)
Mark(MarkInDomain)
Matches against one mark of the socket.
Trait Implementations§
Source§impl Clone for IpSocketMatcher
impl Clone for IpSocketMatcher
Source§fn clone(&self) -> IpSocketMatcher
fn clone(&self) -> IpSocketMatcher
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 IpSocketMatcher
impl Debug for IpSocketMatcher
Source§impl From<IpSocketMatcher> for IpSocketMatcher
impl From<IpSocketMatcher> for IpSocketMatcher
Source§fn from(value: IpSocketMatcher) -> Self
fn from(value: IpSocketMatcher) -> Self
Converts to this type from the input type.
Source§impl PartialEq for IpSocketMatcher
impl PartialEq for IpSocketMatcher
Source§impl TryFrom<IpSocketMatcher> for IpSocketMatcher
impl TryFrom<IpSocketMatcher> for IpSocketMatcher
impl Eq for IpSocketMatcher
impl StructuralPartialEq for IpSocketMatcher
Auto Trait Implementations§
impl Freeze for IpSocketMatcher
impl RefUnwindSafe for IpSocketMatcher
impl Send for IpSocketMatcher
impl Sync for IpSocketMatcher
impl Unpin for IpSocketMatcher
impl UnsafeUnpin for IpSocketMatcher
impl UnwindSafe for IpSocketMatcher
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<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
type Error = <U as TryFromExt<T>>::Error
Source§fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
Tries to perform the conversion.