pub struct Unwrapped {
pub ciphertext: Vec<u8>,
pub consumed: usize,
}Expand description
Result of scanning a byte buffer for complete TLS records.
Fields§
§ciphertext: Vec<u8>Ciphertext bytes extracted from complete data-bearing records (ChangeCipherSpec and Application Data), concatenated in wire order.
consumed: usizeBytes consumed from the front of the input (always a whole number of complete records). The caller should drain this many bytes from its pending buffer and keep the remainder (a partial trailing record, if any) for the next call.
Auto Trait Implementations§
impl Freeze for Unwrapped
impl RefUnwindSafe for Unwrapped
impl Send for Unwrapped
impl Sync for Unwrapped
impl Unpin for Unwrapped
impl UnsafeUnpin for Unwrapped
impl UnwindSafe for Unwrapped
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