[−][src]Struct pfctl::Endpoint
Methods
impl Endpoint
[src]
pub fn new<IP: Into<Ip>, PORT: Into<Port>>(ip: IP, port: PORT) -> Self
[src]
pub fn ip(&self) -> Ip
[src]
pub fn port(&self) -> Port
[src]
pub fn get_af(&self) -> AddrFamily
[src]
Trait Implementations
impl Eq for Endpoint
[src]
impl Default for Endpoint
[src]
impl Clone for Endpoint
[src]
impl PartialEq<Endpoint> for Endpoint
[src]
impl From<Ip> for Endpoint
[src]
impl From<Port> for Endpoint
[src]
impl From<Ipv4Addr> for Endpoint
[src]
impl From<Ipv6Addr> for Endpoint
[src]
impl From<IpAddr> for Endpoint
[src]
impl From<SocketAddrV4> for Endpoint
[src]
fn from(socket_addr: SocketAddrV4) -> Self
[src]
impl From<SocketAddrV6> for Endpoint
[src]
fn from(socket_addr: SocketAddrV6) -> Self
[src]
impl From<SocketAddr> for Endpoint
[src]
fn from(socket_addr: SocketAddr) -> Self
[src]
impl Copy for Endpoint
[src]
impl Hash for Endpoint
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Debug for Endpoint
[src]
Auto Trait Implementations
impl Send for Endpoint
impl Unpin for Endpoint
impl Sync for Endpoint
impl UnwindSafe for Endpoint
impl RefUnwindSafe for Endpoint
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,