pub struct P2pSendStream { /* private fields */ }Expand description
A LinkSendStream implementation wrapping a high-level send stream.
Implementations§
Source§impl P2pSendStream
impl P2pSendStream
Sourcepub fn new(inner: HighLevelSendStream) -> Self
pub fn new(inner: HighLevelSendStream) -> Self
Create a new send stream wrapper.
Trait Implementations§
Source§impl LinkSendStream for P2pSendStream
impl LinkSendStream for P2pSendStream
Source§fn write<'a>(&'a mut self, data: &'a [u8]) -> BoxFuture<'a, LinkResult<usize>>
fn write<'a>(&'a mut self, data: &'a [u8]) -> BoxFuture<'a, LinkResult<usize>>
Write data to the stream.
Source§fn write_all<'a>(&'a mut self, data: &'a [u8]) -> BoxFuture<'a, LinkResult<()>>
fn write_all<'a>(&'a mut self, data: &'a [u8]) -> BoxFuture<'a, LinkResult<()>>
Write all data to the stream.
Source§fn finish(&mut self) -> LinkResult<()>
fn finish(&mut self) -> LinkResult<()>
Finish the stream (signal end of data).
Auto Trait Implementations§
impl Freeze for P2pSendStream
impl RefUnwindSafe for P2pSendStream
impl Send for P2pSendStream
impl Sync for P2pSendStream
impl Unpin for P2pSendStream
impl UnwindSafe for P2pSendStream
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