pub struct RemoteStore { /* private fields */ }Implementations§
Source§impl RemoteStore
impl RemoteStore
pub fn new(cfg: RemoteStoreConfig) -> Self
pub fn get_stats(&self) -> Result<StatsResponse, StoreError>
Trait Implementations§
Source§impl Debug for RemoteStore
impl Debug for RemoteStore
Source§impl Store for RemoteStore
impl Store for RemoteStore
fn persist_with_upstreams( &self, key: &Key, bytes: &[u8], tool_kind: &str, file_roots: Vec<FileRootSerde>, upstream_keys: Vec<String>, ) -> Result<(), StoreError>
fn lookup(&self, key: &Key) -> Result<Option<Payload>, StoreError>
fn remove(&self, key: &Key) -> Result<(), StoreError>
fn total_bytes(&self) -> Result<u64, StoreError>
fn evict_to_cap(&self, _cap_bytes: u64) -> Result<usize, StoreError>
fn iter_meta(&self) -> Result<Vec<(Key, PayloadMeta)>, StoreError>
fn contains(&self, key: &Key) -> bool
fn persist( &self, key: &Key, bytes: &[u8], tool_kind: &str, file_roots: Vec<FileRootSerde>, ) -> Result<(), StoreError>
Auto Trait Implementations§
impl Freeze for RemoteStore
impl !RefUnwindSafe for RemoteStore
impl Send for RemoteStore
impl Sync for RemoteStore
impl Unpin for RemoteStore
impl UnsafeUnpin for RemoteStore
impl !UnwindSafe for RemoteStore
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