Struct embedded_tls::TlsReader
source · pub struct TlsReader<'a, Socket, CipherSuite, State>where
CipherSuite: TlsCipherSuite + 'static,{ /* private fields */ }
Implementations§
source§impl<'a, Socket, CipherSuite, State> TlsReader<'a, Socket, CipherSuite, State>where
Socket: AsyncRead + 'a,
CipherSuite: TlsCipherSuite + 'static,
State: SplitState,
impl<'a, Socket, CipherSuite, State> TlsReader<'a, Socket, CipherSuite, State>where
Socket: AsyncRead + 'a,
CipherSuite: TlsCipherSuite + 'static,
State: SplitState,
sourcepub async fn read_buffered(&mut self) -> Result<ReadBuffer<'_>, TlsError>
pub async fn read_buffered(&mut self) -> Result<ReadBuffer<'_>, TlsError>
Reads buffered data. If nothing is in memory, it’ll wait for a TLS record and process it.
Trait Implementations§
source§impl<'a, Socket, CipherSuite, State> AsRef<Socket> for TlsReader<'a, Socket, CipherSuite, State>where
CipherSuite: TlsCipherSuite + 'static,
impl<'a, Socket, CipherSuite, State> AsRef<Socket> for TlsReader<'a, Socket, CipherSuite, State>where
CipherSuite: TlsCipherSuite + 'static,
source§impl<'a, Socket, CipherSuite, State> BufRead for TlsReader<'a, Socket, CipherSuite, State>where
Socket: AsyncRead + 'a,
CipherSuite: TlsCipherSuite + 'static,
State: SplitState,
impl<'a, Socket, CipherSuite, State> BufRead for TlsReader<'a, Socket, CipherSuite, State>where
Socket: AsyncRead + 'a,
CipherSuite: TlsCipherSuite + 'static,
State: SplitState,
source§impl<'a, Socket, CipherSuite, State> ErrorType for TlsReader<'a, Socket, CipherSuite, State>where
CipherSuite: TlsCipherSuite + 'static,
impl<'a, Socket, CipherSuite, State> ErrorType for TlsReader<'a, Socket, CipherSuite, State>where
CipherSuite: TlsCipherSuite + 'static,
source§impl<'a, Socket, CipherSuite, State> Read for TlsReader<'a, Socket, CipherSuite, State>where
Socket: AsyncRead + 'a,
CipherSuite: TlsCipherSuite + 'static,
State: SplitState,
impl<'a, Socket, CipherSuite, State> Read for TlsReader<'a, Socket, CipherSuite, State>where
Socket: AsyncRead + 'a,
CipherSuite: TlsCipherSuite + 'static,
State: SplitState,
source§async fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error>
async fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error>
Read some bytes from this source into the specified buffer, returning how many bytes were read. Read more
source§async fn read_exact(
&mut self,
buf: &mut [u8]
) -> Result<(), ReadExactError<Self::Error>>
async fn read_exact( &mut self, buf: &mut [u8] ) -> Result<(), ReadExactError<Self::Error>>
Read the exact number of bytes required to fill
buf
. Read moreAuto Trait Implementations§
impl<'a, Socket, CipherSuite, State> RefUnwindSafe for TlsReader<'a, Socket, CipherSuite, State>where
CipherSuite: RefUnwindSafe,
Socket: RefUnwindSafe,
State: RefUnwindSafe,
<<<CipherSuite as TlsCipherSuite>::Hash as BlockSizeUser>::BlockSize as ArrayLength<u8>>::ArrayType: RefUnwindSafe,
<CipherSuite as TlsCipherSuite>::Hash: RefUnwindSafe,
impl<'a, Socket, CipherSuite, State> Send for TlsReader<'a, Socket, CipherSuite, State>
impl<'a, Socket, CipherSuite, State> Sync for TlsReader<'a, Socket, CipherSuite, State>
impl<'a, Socket, CipherSuite, State> Unpin for TlsReader<'a, Socket, CipherSuite, State>where
CipherSuite: Unpin,
Socket: Unpin,
State: Unpin,
<<<CipherSuite as TlsCipherSuite>::Hash as BlockSizeUser>::BlockSize as ArrayLength<u8>>::ArrayType: Unpin,
<CipherSuite as TlsCipherSuite>::Hash: Unpin,
impl<'a, Socket, CipherSuite, State> !UnwindSafe for TlsReader<'a, Socket, CipherSuite, State>
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