pub struct SamStream { /* private fields */ }Expand description
A connected I2P stream (the TCP socket carries data after SAM handshake).
Implementations§
Source§impl SamStream
impl SamStream
Sourcepub fn remote_destination(&self) -> &I2pDestination
pub fn remote_destination(&self) -> &I2pDestination
Get the remote I2P destination.
Sourcepub fn into_inner(self) -> TcpStream
pub fn into_inner(self) -> TcpStream
Consume the SamStream and return the underlying TcpStream.
After the SAM handshake, the TCP stream carries raw BitTorrent protocol
data, so it can be passed directly to run_peer().
Auto Trait Implementations§
impl !Freeze for SamStream
impl RefUnwindSafe for SamStream
impl Send for SamStream
impl Sync for SamStream
impl Unpin for SamStream
impl UnsafeUnpin for SamStream
impl UnwindSafe for SamStream
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