Struct everscale_network::utils::PackedSocketAddr
source · [−]#[repr(transparent)]pub struct PackedSocketAddr(_);
Expand description
Compact IPv4 socket address
Implementations
sourceimpl PackedSocketAddr
impl PackedSocketAddr
sourcepub fn new(addr: SocketAddrV4) -> Self
pub fn new(addr: SocketAddrV4) -> Self
Pack socket address
sourcepub fn from_ip_and_port(ip: u32, port: u16) -> Self
pub fn from_ip_and_port(ip: u32, port: u16) -> Self
Construct socket address from params
Trait Implementations
sourceimpl Clone for PackedSocketAddr
impl Clone for PackedSocketAddr
sourcefn clone(&self) -> PackedSocketAddr
fn clone(&self) -> PackedSocketAddr
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Display for PackedSocketAddr
impl Display for PackedSocketAddr
sourceimpl From<PackedSocketAddr> for SocketAddrV4
impl From<PackedSocketAddr> for SocketAddrV4
sourcefn from(address: PackedSocketAddr) -> Self
fn from(address: PackedSocketAddr) -> Self
Converts to this type from the input type.
sourceimpl From<PackedSocketAddr> for u64
impl From<PackedSocketAddr> for u64
sourcefn from(address: PackedSocketAddr) -> Self
fn from(address: PackedSocketAddr) -> Self
Converts to this type from the input type.
sourceimpl From<SocketAddrV4> for PackedSocketAddr
impl From<SocketAddrV4> for PackedSocketAddr
sourcefn from(addr: SocketAddrV4) -> Self
fn from(addr: SocketAddrV4) -> Self
Converts to this type from the input type.
sourceimpl From<u64> for PackedSocketAddr
impl From<u64> for PackedSocketAddr
sourceimpl Hash for PackedSocketAddr
impl Hash for PackedSocketAddr
sourceimpl PartialEq<PackedSocketAddr> for PackedSocketAddr
impl PartialEq<PackedSocketAddr> for PackedSocketAddr
sourcefn eq(&self, other: &PackedSocketAddr) -> bool
fn eq(&self, other: &PackedSocketAddr) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PackedSocketAddr) -> bool
fn ne(&self, other: &PackedSocketAddr) -> bool
This method tests for !=
.
impl Copy for PackedSocketAddr
impl Eq for PackedSocketAddr
impl StructuralEq for PackedSocketAddr
impl StructuralPartialEq for PackedSocketAddr
Auto Trait Implementations
impl RefUnwindSafe for PackedSocketAddr
impl Send for PackedSocketAddr
impl Sync for PackedSocketAddr
impl Unpin for PackedSocketAddr
impl UnwindSafe for PackedSocketAddr
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Choices> CoproductSubsetter<CNil, HNil> for Choices
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more