pub struct TcpSocketSpec {
pub host: IpAddr,
pub port: u16,
}Expand description
Parsed and validated TCP socket specification for a runner.
Fields§
§host: IpAddr§port: u16Implementations§
Source§impl TcpSocketSpec
impl TcpSocketSpec
Sourcepub fn addr(&self, port: u16) -> SocketAddr
pub fn addr(&self, port: u16) -> SocketAddr
Returns a socket address with the given port (used for pool port allocation).
Trait Implementations§
Source§impl Clone for TcpSocketSpec
impl Clone for TcpSocketSpec
Source§fn clone(&self) -> TcpSocketSpec
fn clone(&self) -> TcpSocketSpec
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TcpSocketSpec
impl Debug for TcpSocketSpec
Source§impl PartialEq for TcpSocketSpec
impl PartialEq for TcpSocketSpec
impl Eq for TcpSocketSpec
impl StructuralPartialEq for TcpSocketSpec
Auto Trait Implementations§
impl Freeze for TcpSocketSpec
impl RefUnwindSafe for TcpSocketSpec
impl Send for TcpSocketSpec
impl Sync for TcpSocketSpec
impl Unpin for TcpSocketSpec
impl UnsafeUnpin for TcpSocketSpec
impl UnwindSafe for TcpSocketSpec
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.