pub struct Session { /* private fields */ }Expand description
TLS session with RAII cleanup.
Wraps ove_tls_t and frees resources on drop.
Implementations§
Source§impl Session
impl Session
Sourcepub fn send(&self, data: &[u8]) -> Result<usize>
pub fn send(&self, data: &[u8]) -> Result<usize>
Send data over the encrypted session.
Returns the number of bytes actually sent.
§Errors
Returns an error if the send fails.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Session
impl RefUnwindSafe for Session
impl !Sync for Session
impl Unpin for Session
impl UnwindSafe for Session
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