pub struct MemBioBuf<'a> { /* private fields */ }Expand description
A read-only BIO wrapping a borrowed byte slice (BIO_new_mem_buf()).
Zero-copy: no data is copied from the slice. The BIO* pointer reads
directly from the caller’s memory. The lifetime 'a ties the BIO to the
source slice.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for MemBioBuf<'a>
impl<'a> RefUnwindSafe for MemBioBuf<'a>
impl<'a> !Sync for MemBioBuf<'a>
impl<'a> Unpin for MemBioBuf<'a>
impl<'a> UnsafeUnpin for MemBioBuf<'a>
impl<'a> UnwindSafe for MemBioBuf<'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