Struct nakamoto_node::client::protocol::Socket
[−]pub struct Socket {
pub addr: SocketAddr,
/* private fields */
}Expand description
Reference counting virtual socket. When there are no more references held, this peer can be dropped.
Fields
addr: SocketAddrSocket address.
Implementations
Trait Implementations
impl From<SocketAddr> for Socket
impl From<SocketAddr> for Socket
fn from(addr: SocketAddr) -> Socket
fn from(addr: SocketAddr) -> Socket
Converts to this type from the input type.
impl Eq for Socket
impl StructuralEq for Socket
impl StructuralPartialEq for Socket
Auto Trait Implementations
impl RefUnwindSafe for Socket
impl Send for Socket
impl Sync for Socket
impl Unpin for Socket
impl UnwindSafe for Socket
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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