Struct yup_hyper_mock::MockPollStream
source · pub struct MockPollStream { /* private fields */ }
Implementations§
Trait Implementations§
source§impl Connection for MockPollStream
impl Connection for MockPollStream
source§impl Read for MockPollStream
impl Read for MockPollStream
source§impl Write for MockPollStream
impl Write for MockPollStream
source§fn poll_write(
self: Pin<&mut Self>,
_cx: &mut Context<'_>,
data: &[u8]
) -> Poll<Result<usize>>
fn poll_write( self: Pin<&mut Self>, _cx: &mut Context<'_>, data: &[u8] ) -> Poll<Result<usize>>
Attempt to write bytes from
buf
into the destination. Read moresource§fn poll_flush(self: Pin<&mut Self>, _cx: &mut Context<'_>) -> Poll<Result<()>>
fn poll_flush(self: Pin<&mut Self>, _cx: &mut Context<'_>) -> Poll<Result<()>>
Attempts to flush the object. Read more
source§fn poll_shutdown(
self: Pin<&mut Self>,
_cx: &mut Context<'_>
) -> Poll<Result<()>>
fn poll_shutdown( self: Pin<&mut Self>, _cx: &mut Context<'_> ) -> Poll<Result<()>>
Attempts to shut down this writer.
source§fn is_write_vectored(&self) -> bool
fn is_write_vectored(&self) -> bool
Returns whether this writer has an efficient
poll_write_vectored
implementation. Read moreAuto Trait Implementations§
impl RefUnwindSafe for MockPollStream
impl Send for MockPollStream
impl Sync for MockPollStream
impl Unpin for MockPollStream
impl UnwindSafe for MockPollStream
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