pub struct PORT {
pub host_address: [u8; 4],
pub port: u16,
}
Expand description
Sets up an IPv4 port
Fields§
§host_address: [u8; 4]
The IPv4 address of the host.
port: u16
The port number.
Implementations§
Source§impl PORT
impl PORT
Sourcepub fn to_socket_addr(&self) -> SocketAddr
pub fn to_socket_addr(&self) -> SocketAddr
Get the address of the socket described by the command.
Trait Implementations§
Source§impl Command for PORT
impl Command for PORT
impl Eq for PORT
impl StructuralPartialEq for PORT
Auto Trait Implementations§
impl Freeze for PORT
impl RefUnwindSafe for PORT
impl Send for PORT
impl Sync for PORT
impl Unpin for PORT
impl UnwindSafe for PORT
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more