pub struct YedbClientAsync {
    pub path: String,
    pub retries: u8,
    pub timeout: Duration,
    /* private fields */
}

Fields§

§path: String§retries: u8§timeout: Duration

Implementations§

source§

impl YedbClientAsync

source

pub fn new(path: &str) -> Self

Trait Implementations§

source§

impl YedbClientAsyncExt for YedbClientAsync

source§

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 Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

§Errors

Will return Err on failed calls

source§

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 Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

§Errors

Will return Err on failed calls

source§

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 Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

§Errors

Will return Err on failed calls

source§

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 Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

§Errors

Will return Err on failed calls

source§

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 Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

§Errors

Will return Err on failed calls

source§

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 Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

§Errors

Will return Err on failed calls

source§

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 Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

§Errors

Will return Err on failed calls

source§

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 Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

§Errors

Will return Err on failed calls

source§

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 Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

§Errors

Will return Err on failed calls

source§

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 Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

§Errors

Will return Err on failed calls

source§

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 Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

§Errors

Will return Err on failed calls

source§

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 Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

§Errors

Will return Err on failed calls

source§

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 Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

§Errors

Will return Err on failed calls

source§

fn key_delete<'life0, 'life1, 'async_trait>( &'life0 mut self, key: &'life1 str ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

§Errors

Will return Err on failed calls

source§

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 Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

§Errors

Will return Err on failed calls

source§

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 Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

§Errors

Will return Err on failed calls

source§

fn info<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<DBInfo, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

§Errors

Will return Err on failed calls

source§

fn test<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

§Errors

Will return Err on failed calls

source§

fn check<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<Vec<String>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

§Errors

Will return Err on failed calls

source§

fn repair<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<Vec<(String, bool)>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

§Errors

Will return Err on failed calls

source§

fn purge<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<Vec<String>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

§Errors

Will return Err on failed calls

source§

fn purge_cache<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

§Errors

Will return Err on failed calls

source§

fn safe_purge<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

§Errors

Will return Err on failed calls

source§

fn key_dump<'life0, 'life1, 'async_trait>( &'life0 mut self, key: &'life1 str ) -> Pin<Box<dyn Future<Output = Result<Vec<(String, Value)>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

§Errors

Will return Err on failed calls

source§

fn key_load<'life0, 'async_trait>( &'life0 mut self, data: Vec<(String, Value)> ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

§Errors

Will return Err on failed calls

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more