Struct distant_core::PortRange
source · [−]Expand description
Represents some range of ports
Fields
start: u16end: Option<u16>Implementations
sourceimpl PortRange
impl PortRange
sourcepub fn make_socket_addrs(&self, addr: impl Into<IpAddr>) -> Vec<SocketAddr>
pub fn make_socket_addrs(&self, addr: impl Into<IpAddr>) -> Vec<SocketAddr>
Builds a collection of SocketAddr instances from the port range and given ip address
Trait Implementations
sourceimpl From<RangeInclusive<u16>> for PortRange
impl From<RangeInclusive<u16>> for PortRange
sourcefn from(r: RangeInclusive<u16>) -> Self
fn from(r: RangeInclusive<u16>) -> Self
Converts to this type from the input type.
sourceimpl<'a> IntoIterator for &'a PortRange
impl<'a> IntoIterator for &'a PortRange
sourceimpl IntoIterator for PortRange
impl IntoIterator for PortRange
impl Eq for PortRange
impl StructuralEq for PortRange
impl StructuralPartialEq for PortRange
Auto Trait Implementations
impl RefUnwindSafe for PortRange
impl Send for PortRange
impl Sync for PortRange
impl Unpin for PortRange
impl UnwindSafe for PortRange
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<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more