pub struct EncryptedSocketStreamReader<'scope> { /* private fields */ }Expand description
Plaintext input which drives its retained TLS receive future. No lock spans an asynchronous wait; paused input does not prevent application output.
Trait Implementations§
Source§impl ReadableStream for EncryptedSocketStreamReader<'_>
impl ReadableStream for EncryptedSocketStreamReader<'_>
Source§async fn read_into(
&mut self,
buffer: &mut [u8],
cancellation: &Cancellation,
) -> OperationResult<usize>
async fn read_into( &mut self, buffer: &mut [u8], cancellation: &Cancellation, ) -> OperationResult<usize>
Read a possibly short prefix. Empty storage does not establish EOF.
Source§fn try_read_into(&mut self, buffer: &mut [u8]) -> Result<usize>
fn try_read_into(&mut self, buffer: &mut [u8]) -> Result<usize>
Attempt one read now, without waiting. Unlike polling
read_into once, this reaches the transport, so it observes input, EOF and errors already queued there. WouldBlock means no input is available now; zero with nonempty storage is EOF, and empty storage returns zero. Other errors are as for read_into, except that a cancelled transport reports ConnectionAborted, since there is no operation cancellation to report and the input cannot resume. Wrappers must forward this rather than polling a read.Auto Trait Implementations§
impl<'scope> !RefUnwindSafe for EncryptedSocketStreamReader<'scope>
impl<'scope> !UnwindSafe for EncryptedSocketStreamReader<'scope>
impl<'scope> Freeze for EncryptedSocketStreamReader<'scope>
impl<'scope> Send for EncryptedSocketStreamReader<'scope>
impl<'scope> Sync for EncryptedSocketStreamReader<'scope>
impl<'scope> Unpin for EncryptedSocketStreamReader<'scope>
impl<'scope> UnsafeUnpin for EncryptedSocketStreamReader<'scope>
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