pub struct CommandCache { /* private fields */ }Expand description
Command cache for serialized commands
Implementations§
Source§impl CommandCache
impl CommandCache
Sourcepub fn get_or_insert<F>(&mut self, key: &str, f: F) -> Bytes
pub fn get_or_insert<F>(&mut self, key: &str, f: F) -> Bytes
Get a cached command or insert a new one
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CommandCache
impl RefUnwindSafe for CommandCache
impl Send for CommandCache
impl Sync for CommandCache
impl Unpin for CommandCache
impl UnwindSafe for CommandCache
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