pub struct Client { /* private fields */ }
Implementations§
Source§impl Client
impl Client
pub fn with(connect: &ServiceAddr) -> Result<Self, ServerError<FailureCode>>
pub fn use_table( &mut self, table: impl ToString, ) -> Result<(), ServerError<FailureCode>>
pub fn list_tables( &mut self, ) -> Result<BTreeSet<String>, ServerError<FailureCode>>
pub fn count( &mut self, table: impl ToString, ) -> Result<u64, ServerError<FailureCode>>
pub fn store( &mut self, table: impl ToString, key: impl PrimaryKey, data: &impl TryToChunk, ) -> Result<ChunkId, ServerError<FailureCode>>
pub fn retrieve<D>(
&mut self,
table: impl ToString,
key: impl PrimaryKey,
) -> Result<Option<D>, ServerError<FailureCode>>where
D: TryFromChunk,
pub fn retrieve_chunk( &mut self, table: impl ToString, key: impl PrimaryKey, ) -> Result<Option<Chunk>, ServerError<FailureCode>>
pub fn insert_into_set( &mut self, table: impl ToString, key: impl PrimaryKey, item: impl Into<Slice32>, ) -> Result<(), ServerError<FailureCode>>
pub fn ids( &mut self, table: impl ToString, ) -> Result<BTreeSet<ChunkId>, ServerError<FailureCode>>
pub fn filter_unknown( &mut self, table: impl ToString, ids: BTreeSet<ChunkId>, ) -> Result<BTreeSet<ChunkId>, ServerError<FailureCode>>
Auto Trait Implementations§
impl Freeze for Client
impl RefUnwindSafe for Client
impl Send for Client
impl !Sync for Client
impl Unpin 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