pub struct MayEncryptEarlyData<'c> {
conn: &'c mut UnbufferedConnectionCommon<ClientConnectionData>,
}
Expand description
Allows encrypting early (RTT-0) data
Fields§
§conn: &'c mut UnbufferedConnectionCommon<ClientConnectionData>
Implementations§
Source§impl MayEncryptEarlyData<'_>
impl MayEncryptEarlyData<'_>
Sourcepub fn encrypt(
&mut self,
early_data: &[u8],
outgoing_tls: &mut [u8],
) -> Result<usize, EarlyDataError>
pub fn encrypt( &mut self, early_data: &[u8], outgoing_tls: &mut [u8], ) -> Result<usize, EarlyDataError>
Encrypts application_data
into the outgoing_tls
buffer
returns the number of bytes that were written into outgoing_tls
, or an error if
the provided buffer was too small. In the error case, outgoing_tls
is not modified
Auto Trait Implementations§
impl<'c> Freeze for MayEncryptEarlyData<'c>
impl<'c> !RefUnwindSafe for MayEncryptEarlyData<'c>
impl<'c> Send for MayEncryptEarlyData<'c>
impl<'c> Sync for MayEncryptEarlyData<'c>
impl<'c> Unpin for MayEncryptEarlyData<'c>
impl<'c> !UnwindSafe for MayEncryptEarlyData<'c>
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