pub struct MemBio { /* private fields */ }Expand description
A writable, growable in-memory BIO.
Data written to this BIO accumulates in an internal buffer managed by
OpenSSL. After writing, data() returns a borrowed slice without copying.
Implementations§
Source§impl MemBio
impl MemBio
Sourcepub fn new() -> Result<Self, ErrorStack>
pub fn new() -> Result<Self, ErrorStack>
Create a new empty writable BIO_s_mem() BIO.
§Errors
Returns Err if OpenSSL cannot allocate the BIO.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MemBio
impl RefUnwindSafe for MemBio
impl !Sync for MemBio
impl Unpin for MemBio
impl UnsafeUnpin for MemBio
impl UnwindSafe for MemBio
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