pub enum Nothing {}Expand description
No disk: memory over nothing never waits.
Trait Implementations§
Source§impl Backend for Nothing
impl Backend for Nothing
type Lock = ()
Source§async fn lock(&self) -> Result<(), String>
async fn lock(&self) -> Result<(), String>
The one exclusive lock over these names, shared by every store over them.
async fn get(&self, _: &str) -> Result<Option<Vec<u8>>, String>
Source§async fn get_range(
&self,
_: &str,
_: u64,
_: u64,
) -> Result<Option<Vec<u8>>, String>
async fn get_range( &self, _: &str, _: u64, _: u64, ) -> Result<Option<Vec<u8>>, String>
At most
len bytes from from on, fewer where the name ends sooner.async fn put(&self, _: &str, _: &[u8]) -> Result<(), String>
Source§async fn delete(&self, _: &str) -> Result<bool, String>
async fn delete(&self, _: &str) -> Result<bool, String>
False where another holder has
name open, so it stays.Auto Trait Implementations§
impl Freeze for Nothing
impl RefUnwindSafe for Nothing
impl Send for Nothing
impl Sync for Nothing
impl Unpin for Nothing
impl UnsafeUnpin for Nothing
impl UnwindSafe for Nothing
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