pub struct TcpPort;
Trait Implementations§
Source§impl Ops for TcpPort
impl Ops for TcpPort
Source§fn from_list(host: &str, v: Vec<u16>) -> Option<u16>
fn from_list(host: &str, v: Vec<u16>) -> Option<u16>
Returns any port from the supplied list. Read more
Source§fn except(host: &str, v: Vec<u16>) -> Option<u16>
fn except(host: &str, v: Vec<u16>) -> Option<u16>
Returns any port from the default range except for the ones in the supplied list. Read more
Auto Trait Implementations§
impl Freeze for TcpPort
impl RefUnwindSafe for TcpPort
impl Send for TcpPort
impl Sync for TcpPort
impl Unpin for TcpPort
impl UnwindSafe for TcpPort
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