pub struct FabricClient { /* private fields */ }Expand description
Client for interacting with your fabric server
Implementations§
Source§impl FabricClient
impl FabricClient
Sourcepub async fn set<T: Serialize>(
&mut self,
key: &str,
value: &T,
) -> Result<(), Error>
pub async fn set<T: Serialize>( &mut self, key: &str, value: &T, ) -> Result<(), Error>
Perform the SET command on a provided key to either insert, or update the value of the key.
NOTE: That any data structure T for the value
must implement the serde::Serialize trait.
Auto Trait Implementations§
impl !Freeze for FabricClient
impl RefUnwindSafe for FabricClient
impl Send for FabricClient
impl Sync for FabricClient
impl Unpin for FabricClient
impl UnwindSafe for FabricClient
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