Struct yedb::client::YedbClient [−][src]
pub struct YedbClient { pub path: String, pub retries: u8, pub timeout: Duration, // some fields omitted }
Fields
path: String
retries: u8
timeout: Duration
Implementations
impl YedbClient
[src]
impl YedbClient
[src]pub fn new(path: &str) -> Self
[src]
pub fn call(&mut self, req: &JSONRpcRequest) -> Result<Value, Error>
[src]
pub fn key_list(&mut self, key: &str) -> Result<Vec<String>, Error>
[src]
pub fn key_list_all(&mut self, key: &str) -> Result<Vec<String>, Error>
[src]
pub fn key_get(&mut self, key: &str) -> Result<Value, Error>
[src]
pub fn key_get_field(&mut self, key: &str, field: &str) -> Result<Value, Error>
[src]
pub fn key_get_recursive(
&mut self,
key: &str
) -> Result<Vec<(String, Value)>, Error>
[src]
&mut self,
key: &str
) -> Result<Vec<(String, Value)>, Error>
pub fn key_copy(&mut self, key: &str, dst_key: &str) -> Result<(), Error>
[src]
pub fn key_rename(&mut self, key: &str, dst_key: &str) -> Result<(), Error>
[src]
pub fn key_explain(&mut self, key: &str) -> Result<KeyExplained, Error>
[src]
pub fn key_set(&mut self, key: &str, value: Value) -> Result<(), Error>
[src]
pub fn key_set_field(
&mut self,
key: &str,
field: &str,
value: Value
) -> Result<(), Error>
[src]
&mut self,
key: &str,
field: &str,
value: Value
) -> Result<(), Error>
pub fn key_increment(&mut self, key: &str) -> Result<i64, Error>
[src]
pub fn key_decrement(&mut self, key: &str) -> Result<i64, Error>
[src]
pub fn key_delete(&mut self, key: &str) -> Result<(), Error>
[src]
pub fn key_delete_recursive(&mut self, key: &str) -> Result<(), Error>
[src]
pub fn server_set(&mut self, name: &str, value: Value) -> Result<(), Error>
[src]
pub fn info(&mut self) -> Result<DBInfo, Error>
[src]
pub fn test(&mut self) -> Result<(), Error>
[src]
pub fn check(&mut self) -> Result<Vec<String>, Error>
[src]
pub fn repair(&mut self) -> Result<Vec<(String, bool)>, Error>
[src]
pub fn purge(&mut self) -> Result<Vec<String>, Error>
[src]
pub fn purge_cache(&mut self) -> Result<(), Error>
[src]
pub fn safe_purge(&mut self) -> Result<(), Error>
[src]
pub fn key_dump(&mut self, key: &str) -> Result<Vec<(String, Value)>, Error>
[src]
pub fn key_load(&mut self, data: Vec<(String, Value)>) -> Result<(), Error>
[src]
Auto Trait Implementations
impl RefUnwindSafe for YedbClient
impl Send for YedbClient
impl Sync for YedbClient
impl Unpin for YedbClient
impl UnwindSafe for YedbClient
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self