pub struct LocalObjectStore { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Clone for LocalObjectStore
impl Clone for LocalObjectStore
Source§impl DurableObjectStore for LocalObjectStore
impl DurableObjectStore for LocalObjectStore
fn put_if_absent(&self, key: &str, value: &[u8]) -> Result<(), String>
fn get(&self, key: &str) -> Result<Option<Vec<u8>>, String>
fn delete(&self, key: &str) -> Result<bool, String>
fn list_prefix(&self, prefix: &str) -> Result<Vec<String>, String>
fn compare_and_swap( &self, key: &str, expected: Option<&[u8]>, replacement: &[u8], ) -> Result<bool, String>
Auto Trait Implementations§
impl Freeze for LocalObjectStore
impl RefUnwindSafe for LocalObjectStore
impl Send for LocalObjectStore
impl Sync for LocalObjectStore
impl Unpin for LocalObjectStore
impl UnsafeUnpin for LocalObjectStore
impl UnwindSafe for LocalObjectStore
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