[−][src]Struct sledis::Conn
Implementations
impl Conn
[src]
pub fn list_get_meta(&self, name: &[u8]) -> Result<Meta, Error>
[src]
pub fn list_len(&self, name: &[u8]) -> Result<u64, Error>
[src]
pub fn list_get(&self, name: &[u8], ix: u64) -> Result<Option<IVec>, Error>
[src]
pub fn list_push_front(&self, name: &[u8], val: IVec) -> Result<(), Error>
[src]
pub fn list_push_back(&self, name: &[u8], val: IVec) -> Result<(), Error>
[src]
pub fn list_pop_front(&self, name: &[u8]) -> Result<Option<IVec>, Error>
[src]
pub fn list_pop_back(&self, name: &[u8]) -> Result<Option<IVec>, Error>
[src]
pub fn list_set(
&self,
name: &[u8],
ix: u64,
val: IVec
) -> Result<Option<IVec>, Error>
[src]
&self,
name: &[u8],
ix: u64,
val: IVec
) -> Result<Option<IVec>, Error>
impl Conn
[src]
pub fn table_get_meta(&self, name: &[u8]) -> Result<Meta, Error>
[src]
pub fn table_get(&self, name: &[u8], key: &[u8]) -> Result<Option<IVec>, Error>
[src]
pub fn table_update<F: for<'a> FnOnce(&'a Meta, &'a Option<IVec>) -> Option<IVec>>(
&self,
name: &[u8],
key: &[u8],
f: F
) -> Result<Option<IVec>, Error>
[src]
&self,
name: &[u8],
key: &[u8],
f: F
) -> Result<Option<IVec>, Error>
pub fn table_insert(
&self,
name: &[u8],
key: &[u8],
val: IVec
) -> Result<Option<IVec>, Error>
[src]
&self,
name: &[u8],
key: &[u8],
val: IVec
) -> Result<Option<IVec>, Error>
pub fn table_remove(
&self,
name: &[u8],
key: &[u8]
) -> Result<Option<IVec>, Error>
[src]
&self,
name: &[u8],
key: &[u8]
) -> Result<Option<IVec>, Error>
impl Conn
[src]
pub fn open<P: AsRef<Path>>(path: P) -> Result<Self, Error>
[src]
pub fn clear(&self) -> Result<(), Error>
[src]
pub fn blob_get(&self, name: &[u8]) -> Result<Option<IVec>, Error>
[src]
pub fn blob_set(&self, name: &[u8], val: IVec) -> Result<Option<IVec>, Error>
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Conn
impl Send for Conn
impl Sync for Conn
impl Unpin for Conn
impl !UnwindSafe for Conn
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,