Struct rustbreak::backend::MemoryBackend
source · [−]pub struct MemoryBackend(_);
Expand description
An in memory backend.
It is backed by a byte vector (Vec<u8>
).
Implementations
sourceimpl MemoryBackend
impl MemoryBackend
Trait Implementations
sourceimpl Backend for MemoryBackend
impl Backend for MemoryBackend
sourcefn get_data(&mut self) -> BackendResult<Vec<u8>>
fn get_data(&mut self) -> BackendResult<Vec<u8>>
Read the all data from the backend.
sourcefn put_data(&mut self, data: &[u8]) -> BackendResult<()>
fn put_data(&mut self, data: &[u8]) -> BackendResult<()>
Write the whole slice to the backend.
sourceimpl Debug for MemoryBackend
impl Debug for MemoryBackend
sourceimpl Default for MemoryBackend
impl Default for MemoryBackend
sourcefn default() -> MemoryBackend
fn default() -> MemoryBackend
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for MemoryBackend
impl Send for MemoryBackend
impl Sync for MemoryBackend
impl Unpin for MemoryBackend
impl UnwindSafe for MemoryBackend
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more