pub struct SessionReadHalf { /* private fields */ }Expand description
The read half of a PSEC session. Obtained with Session::into_split.
Trait Implementations§
Source§impl Debug for SessionReadHalf
impl Debug for SessionReadHalf
Source§impl PsecReader for SessionReadHalf
impl PsecReader for SessionReadHalf
Source§fn set_max_recv_size(&mut self, size: usize, is_raw_size: bool)
fn set_max_recv_size(&mut self, size: usize, is_raw_size: bool)
Set the maximum size of an acceptable buffer being received. Read more
Source§fn receive_and_decrypt<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, PsecError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn receive_and_decrypt<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, PsecError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read then decrypt from a PSEC session. Read more
Source§fn into_receive_and_decrypt<'async_trait>(
self,
) -> Pin<Box<dyn Future<Output = (Result<Vec<u8>, PsecError>, Self)> + Send + 'async_trait>>where
Self: 'async_trait,
fn into_receive_and_decrypt<'async_trait>(
self,
) -> Pin<Box<dyn Future<Output = (Result<Vec<u8>, PsecError>, Self)> + Send + 'async_trait>>where
Self: 'async_trait,
Take ownership of the
PsecReader, read, decrypt, then return back the PsecReader. Useful when used with tokio::select!. Read moreAuto Trait Implementations§
impl Freeze for SessionReadHalf
impl RefUnwindSafe for SessionReadHalf
impl Send for SessionReadHalf
impl Sync for SessionReadHalf
impl Unpin for SessionReadHalf
impl UnwindSafe for SessionReadHalf
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