pub struct ContractStore { /* private fields */ }Expand description
Thread-safe store for IPC contract baselines.
Implementations§
Source§impl ContractStore
impl ContractStore
Sourcepub fn record(&self, baseline: ContractBaseline)
pub fn record(&self, baseline: ContractBaseline)
Record a baseline for a command.
Sourcepub fn get(&self, command: &str) -> Option<ContractBaseline>
pub fn get(&self, command: &str) -> Option<ContractBaseline>
Get the baseline for a command.
Sourcepub fn all(&self) -> Vec<ContractBaseline>
pub fn all(&self) -> Vec<ContractBaseline>
Get all baselines.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ContractStore
impl RefUnwindSafe for ContractStore
impl Send for ContractStore
impl Sync for ContractStore
impl Unpin for ContractStore
impl UnsafeUnpin for ContractStore
impl UnwindSafe for ContractStore
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