Struct zenoh_backend_traits::Capability
source · pub struct Capability {
pub persistence: Persistence,
pub history: History,
pub read_cost: u32,
}Expand description
Capability of a storage indicates the guarantees of the storage It is used by the storage manager to take decisions on the trade-offs to ensure correct performance
Fields§
§persistence: Persistence§history: History§read_cost: u32read_cost is a parameter that hels the storage manager take a decision on optimizing database roundtrips
If the read_cost is higher than a given threshold, the storage manger will maintain a cache with the keys present in the database
This is a placeholder, not actually utilised in the current implementation
Auto Trait Implementations§
impl Freeze for Capability
impl RefUnwindSafe for Capability
impl Send for Capability
impl Sync for Capability
impl Unpin for Capability
impl UnwindSafe for Capability
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