Struct yedb::client_async::YedbClientAsync
source · [−]pub struct YedbClientAsync {
pub path: String,
pub retries: u8,
pub timeout: Duration,
/* private fields */
}
Fields
path: String
retries: u8
timeout: Duration
Implementations
Trait Implementations
sourceimpl YedbClientAsyncExt for YedbClientAsync
impl YedbClientAsyncExt for YedbClientAsync
sourcefn key_list<'life0, 'life1, 'async_trait>(
&'life0 mut self,
key: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn key_list<'life0, 'life1, 'async_trait>(
&'life0 mut self,
key: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Errors
Will return Err on failed calls
sourcefn key_list_all<'life0, 'life1, 'async_trait>(
&'life0 mut self,
key: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn key_list_all<'life0, 'life1, 'async_trait>(
&'life0 mut self,
key: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Errors
Will return Err on failed calls
sourcefn key_get<'life0, 'life1, 'async_trait>(
&'life0 mut self,
key: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Value, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn key_get<'life0, 'life1, 'async_trait>(
&'life0 mut self,
key: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Value, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Errors
Will return Err on failed calls
sourcefn key_get_field<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
key: &'life1 str,
field: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<Value, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn key_get_field<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
key: &'life1 str,
field: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<Value, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
Errors
Will return Err on failed calls
sourcefn key_get_recursive<'life0, 'life1, 'async_trait>(
&'life0 mut self,
key: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Vec<(String, Value)>, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn key_get_recursive<'life0, 'life1, 'async_trait>(
&'life0 mut self,
key: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Vec<(String, Value)>, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Errors
Will return Err on failed calls
sourcefn key_copy<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
key: &'life1 str,
dst_key: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn key_copy<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
key: &'life1 str,
dst_key: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
Errors
Will return Err on failed calls
sourcefn key_rename<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
key: &'life1 str,
dst_key: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn key_rename<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
key: &'life1 str,
dst_key: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
Errors
Will return Err on failed calls
sourcefn key_explain<'life0, 'life1, 'async_trait>(
&'life0 mut self,
key: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<KeyExplained, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn key_explain<'life0, 'life1, 'async_trait>(
&'life0 mut self,
key: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<KeyExplained, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Errors
Will return Err on failed calls
sourcefn key_set<'life0, 'life1, 'async_trait>(
&'life0 mut self,
key: &'life1 str,
value: Value
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn key_set<'life0, 'life1, 'async_trait>(
&'life0 mut self,
key: &'life1 str,
value: Value
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Errors
Will return Err on failed calls
sourcefn key_set_field<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
key: &'life1 str,
field: &'life2 str,
value: Value
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn key_set_field<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
key: &'life1 str,
field: &'life2 str,
value: Value
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
Errors
Will return Err on failed calls
sourcefn key_delete_field<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
key: &'life1 str,
field: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn key_delete_field<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
key: &'life1 str,
field: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
Errors
Will return Err on failed calls
sourcefn key_increment<'life0, 'life1, 'async_trait>(
&'life0 mut self,
key: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<i64, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn key_increment<'life0, 'life1, 'async_trait>(
&'life0 mut self,
key: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<i64, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Errors
Will return Err on failed calls
sourcefn key_decrement<'life0, 'life1, 'async_trait>(
&'life0 mut self,
key: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<i64, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn key_decrement<'life0, 'life1, 'async_trait>(
&'life0 mut self,
key: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<i64, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Errors
Will return Err on failed calls
sourcefn key_delete<'life0, 'life1, 'async_trait>(
&'life0 mut self,
key: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn key_delete<'life0, 'life1, 'async_trait>(
&'life0 mut self,
key: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Errors
Will return Err on failed calls
sourcefn key_delete_recursive<'life0, 'life1, 'async_trait>(
&'life0 mut self,
key: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn key_delete_recursive<'life0, 'life1, 'async_trait>(
&'life0 mut self,
key: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Errors
Will return Err on failed calls
sourcefn server_set<'life0, 'life1, 'async_trait>(
&'life0 mut self,
name: &'life1 str,
value: Value
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn server_set<'life0, 'life1, 'async_trait>(
&'life0 mut self,
name: &'life1 str,
value: Value
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Errors
Will return Err on failed calls
sourcefn info<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<DBInfo, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn info<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<DBInfo, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Errors
Will return Err on failed calls
sourcefn test<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn test<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Errors
Will return Err on failed calls
sourcefn check<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn check<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Errors
Will return Err on failed calls
sourcefn repair<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Vec<(String, bool)>, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn repair<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Vec<(String, bool)>, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Errors
Will return Err on failed calls
sourcefn purge<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn purge<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Errors
Will return Err on failed calls
sourcefn purge_cache<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn purge_cache<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Errors
Will return Err on failed calls
sourcefn safe_purge<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn safe_purge<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Errors
Will return Err on failed calls
Auto Trait Implementations
impl !RefUnwindSafe for YedbClientAsync
impl Send for YedbClientAsync
impl Sync for YedbClientAsync
impl Unpin for YedbClientAsync
impl !UnwindSafe for YedbClientAsync
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self