pub struct CommandCache {
cache: Mutex<HashMap<CommandCacheKey, CommandOutput>>,
}
Fields§
§cache: Mutex<HashMap<CommandCacheKey, CommandOutput>>
Implementations§
Source§impl CommandCache
impl CommandCache
pub fn get(&self, key: &CommandCacheKey) -> Option<CommandOutput>
pub fn insert(&self, key: CommandCacheKey, output: CommandOutput)
Trait Implementations§
Source§impl Default for CommandCache
impl Default for CommandCache
Source§fn default() -> CommandCache
fn default() -> CommandCache
Returns the “default value” for a type. Read more
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
§impl<T> Pointable for T
impl<T> Pointable for T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 56 bytes