pub struct TpmWriter<'a> { /* private fields */ }Expand description
Writes into a mutable byte slice.
Implementations§
Source§impl<'a> TpmWriter<'a>
impl<'a> TpmWriter<'a>
Sourcepub fn write_bytes(&mut self, bytes: &[u8]) -> TpmResult<()>
pub fn write_bytes(&mut self, bytes: &[u8]) -> TpmResult<()>
Appends a slice of bytes to the writer.
§Errors
Returns CapacityExceeded
when the capacity of the buffer is exceeded.
Auto Trait Implementations§
impl<'a> Freeze for TpmWriter<'a>
impl<'a> RefUnwindSafe for TpmWriter<'a>
impl<'a> Send for TpmWriter<'a>
impl<'a> Sync for TpmWriter<'a>
impl<'a> Unpin for TpmWriter<'a>
impl<'a> !UnwindSafe for TpmWriter<'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