pub struct PacketStream<T> { /* private fields */ }Implementations§
Source§impl<T> PacketStream<T>
impl<T> PacketStream<T>
Source§impl<T> PacketStream<T>where
T: AsyncWrite + Debug,
impl<T> PacketStream<T>where
T: AsyncWrite + Debug,
Sourcepub fn enqueue<B: AsRef<[u8]>>(
self: Pin<&mut Self>,
item: B,
) -> Result<(), Error>
pub fn enqueue<B: AsRef<[u8]>>( self: Pin<&mut Self>, item: B, ) -> Result<(), Error>
generic sending method
pub fn poll_flush( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<(), Error>>
pub fn poll_close( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<(), Error>>
Trait Implementations§
Source§impl<T: Debug> Debug for PacketStream<T>
impl<T: Debug> Debug for PacketStream<T>
Source§impl<T> FusedStream for PacketStream<T>
impl<T> FusedStream for PacketStream<T>
Source§fn is_terminated(&self) -> bool
fn is_terminated(&self) -> bool
Returns
true if the stream should no longer be polled.Source§impl<T> Stream for PacketStream<T>
impl<T> Stream for PacketStream<T>
impl<'__pin, T> Unpin for PacketStream<T>where
__Origin<'__pin, T>: Unpin,
Auto Trait Implementations§
impl<T> Freeze for PacketStream<T>where
T: Freeze,
impl<T> RefUnwindSafe for PacketStream<T>where
T: RefUnwindSafe,
impl<T> Send for PacketStream<T>where
T: Send,
impl<T> Sync for PacketStream<T>where
T: Sync,
impl<T> UnwindSafe for PacketStream<T>where
T: UnwindSafe,
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