Struct cyfs_util::FileStorage
source · [−]pub struct FileStorage { /* private fields */ }Implementations
sourceimpl FileStorage
impl FileStorage
pub fn new() -> FileStorage
pub async fn init(&mut self, service_name: &str) -> Result<(), BuckyError>
pub async fn get_item_str(&self, key: &str) -> Option<&str>
Trait Implementations
sourceimpl AsyncStorage for FileStorage
impl AsyncStorage for FileStorage
fn set_item<'life0, 'life1, 'async_trait>(
&'life0 mut self,
key: &'life1 str,
value: String
) -> Pin<Box<dyn Future<Output = Result<(), BuckyError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn get_item<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str
) -> Pin<Box<dyn Future<Output = Option<String>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn remove_item<'life0, 'life1, 'async_trait>(
&'life0 mut self,
key: &'life1 str
) -> Pin<Box<dyn Future<Output = Option<()>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn clear<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn clear_with_prefix<'life0, 'life1, 'async_trait>(
&'life0 mut self,
prefix: &'life1 str
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Auto Trait Implementations
impl RefUnwindSafe for FileStorage
impl Send for FileStorage
impl Sync for FileStorage
impl Unpin for FileStorage
impl UnwindSafe for FileStorage
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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