Struct ffly_rs::FireflyStream
source · [−]pub struct FireflyStream { /* private fields */ }Implementations
sourceimpl FireflyStream
impl FireflyStream
pub async fn connect(address: &str) -> FireflyResult<Self>
pub async fn connect_with_max_buffer(
address: &str,
max_buffer_size: usize
) -> FireflyResult<Self>
pub async fn new(&self, key: &str, value: &str) -> OptResult
pub async fn new_with_ttl(&self, key: &str, value: &str, ttl: usize) -> OptResult
pub async fn get(&self, key: &str) -> FireflyResult<(String, String)>
pub async fn get_value(&self, key: &str) -> Data
pub async fn get_ttl(&self, key: &str) -> FireflyResult<usize>
pub async fn drop(&self, key: &str) -> OptResult
pub async fn drop_values(&self, value: &str) -> OptResult
Auto Trait Implementations
impl RefUnwindSafe for FireflyStream
impl Send for FireflyStream
impl Sync for FireflyStream
impl Unpin for FireflyStream
impl UnwindSafe for FireflyStream
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