pub struct RendezvousStream { /* private fields */ }Implementations§
Source§impl RendezvousStream
impl RendezvousStream
pub fn new(circ: Circuit, hs_crypto: RelayCrypto) -> Self
pub fn begin(&mut self, stream_id: u16, port: u16) -> Result<()>
pub fn send_data(&mut self, stream_id: u16, data: &[u8]) -> Result<()>
pub fn read_until_end(&mut self, stream_id: u16, limit: usize) -> Result<Bytes>
pub fn end(&mut self, stream_id: u16) -> Result<()>
Auto Trait Implementations§
impl Freeze for RendezvousStream
impl !RefUnwindSafe for RendezvousStream
impl Send for RendezvousStream
impl Sync for RendezvousStream
impl Unpin for RendezvousStream
impl UnsafeUnpin for RendezvousStream
impl !UnwindSafe for RendezvousStream
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