pub struct Transport {
pub remote_static: Vec<u8>,
/* private fields */
}Expand description
An established, encrypted session.
Fields§
§remote_static: Vec<u8>Peer’s static public key (from the XX handshake).
Implementations§
Source§impl Transport
impl Transport
Sourcepub fn initiate(stream: TcpStream, static_priv: &[u8]) -> Result<Self>
pub fn initiate(stream: TcpStream, static_priv: &[u8]) -> Result<Self>
Run the XX handshake as the connecting peer.
Sourcepub fn respond(stream: TcpStream, static_priv: &[u8]) -> Result<Self>
pub fn respond(stream: TcpStream, static_priv: &[u8]) -> Result<Self>
Run the XX handshake as the listening peer.
Auto Trait Implementations§
impl !RefUnwindSafe for Transport
impl !UnwindSafe for Transport
impl Freeze for Transport
impl Send for Transport
impl Sync for Transport
impl Unpin for Transport
impl UnsafeUnpin for Transport
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