#[non_exhaustive]pub enum AccessRawStreamError {
Closed,
HasBufferedData(Vec<u8>),
}
Expand description
An error indicating that the inner socket cannot be accessed directly.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Closed
The TLS connection is fully closed (both read and write sides).
HasBufferedData(Vec<u8>)
There’s still buffered data that has not been retrieved yet.
The buffered data typically consists of:
- Early data received during handshake.
- Application data received due to improper usage of
StreamRefMutRaw::handle_io_error
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AccessRawStreamError
impl RefUnwindSafe for AccessRawStreamError
impl Send for AccessRawStreamError
impl Sync for AccessRawStreamError
impl Unpin for AccessRawStreamError
impl UnwindSafe for AccessRawStreamError
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