Struct bitcoin_sam::Connection
source · pub struct Connection {
pub sock: Box<Sock>,
pub me: Service,
pub peer: Service,
}Expand description
| An established connection with another | peer. |
Fields§
§sock: Box<Sock>| Connected socket. |
me: Service| Our I2P address. |
peer: Service| The peer’s I2P address. |
Trait Implementations§
source§impl Default for Connection
impl Default for Connection
source§fn default() -> Connection
fn default() -> Connection
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for Connection
impl Send for Connection
impl Sync for Connection
impl Unpin for Connection
impl UnwindSafe for Connection
Blanket Implementations§
§impl<T, U> CastInto<U> for Twhere
U: CastFrom<T>,
impl<T, U> CastInto<U> for Twhere U: CastFrom<T>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> StaticUpcast<T> for T
impl<T> StaticUpcast<T> for T
§unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
Convert type of a const pointer. Read more