pub struct EngineHandle { /* private fields */ }Implementations§
Source§impl EngineHandle
impl EngineHandle
pub fn open(config: FastCacheConfig) -> Result<Self>
pub fn config(&self) -> &FastCacheConfig
pub async fn execute(&self, command: Command) -> Result<Frame>
pub async fn execute_fast<'a>( &'a self, request: FastRequest<'a>, ) -> Result<FastResponse>
pub async fn execute_borrowed<'a>( &'a self, command: BorrowedCommand<'a>, ) -> Result<Frame>
pub async fn snapshot(&self) -> Result<PathBuf>
pub async fn stats_snapshot(&self) -> Result<GlobalStatsSnapshot>
pub async fn shutdown(&self) -> Result<()>
pub fn snapshot_interval(&self) -> Duration
pub fn snapshot_min_writes(&self) -> u64
Trait Implementations§
Source§impl Clone for EngineHandle
impl Clone for EngineHandle
Source§fn clone(&self) -> EngineHandle
fn clone(&self) -> EngineHandle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EngineHandle
impl !RefUnwindSafe for EngineHandle
impl Send for EngineHandle
impl Sync for EngineHandle
impl Unpin for EngineHandle
impl UnsafeUnpin for EngineHandle
impl !UnwindSafe for EngineHandle
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