pub struct BufferUpdate<'a> { /* private fields */ }
Expand description
A struct indicating the portion of a buffer written to, and/or not written to, during an encryption/decryption operation.
Implementations§
Source§impl BufferUpdate<'_>
impl BufferUpdate<'_>
Sourcepub fn written(&self) -> &[u8] ⓘ
pub fn written(&self) -> &[u8] ⓘ
Returns the slice from the buffer that was modified by the operation.
Sourcepub fn remainder(&self) -> &[u8] ⓘ
pub fn remainder(&self) -> &[u8] ⓘ
Returns the slice of the buffer that was not modified by the operation.
Sourcepub fn remainder_mut(&mut self) -> &mut [u8] ⓘ
pub fn remainder_mut(&mut self) -> &mut [u8] ⓘ
Returns a mutable slice of the buffer that was not modified by the operation.
Auto Trait Implementations§
impl<'a> Freeze for BufferUpdate<'a>
impl<'a> RefUnwindSafe for BufferUpdate<'a>
impl<'a> Send for BufferUpdate<'a>
impl<'a> Sync for BufferUpdate<'a>
impl<'a> Unpin for BufferUpdate<'a>
impl<'a> !UnwindSafe for BufferUpdate<'a>
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