pub struct Client {
pub debug: bool,
/* private fields */
}Fields§
§debug: boolImplementations§
Source§impl Client
impl Client
pub fn new<S: Into<String>>(host: S, port: u16) -> Client
pub fn debug_print(&self, s: &str)
pub fn kv_get<S: Into<String>>(&self, key: S) -> String
pub fn kv_get_folder<S: Into<String>>( &self, folder: S, ) -> Result<Vec<String>, String>
pub fn kv_set<S: Into<String>>(&self, key: S, v: S) -> Result<bool, String>
pub fn kv_set_with_session<S: Into<String>>( &self, key: S, v: S, session: S, ) -> Result<bool, String>
pub fn kv_delete<S: Into<String>>(&self, key: S) -> Result<bool, String>
pub fn kv_delete_both_session<S: Into<String>>( &self, key: S, ) -> Result<bool, String>
pub fn session_set( &self, lock_delay: String, name: String, node: String, behavior: String, ttl: String, ) -> String
pub fn session_renew(&self, sid: &str) -> Result<(), CustomError>
pub fn session_delete(&self, sid: &str) -> String
Auto Trait Implementations§
impl Freeze for Client
impl RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin for Client
impl UnwindSafe for Client
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more