pub struct BashPassRegistry { /* private fields */ }Implementations§
Source§impl BashPassRegistry
impl BashPassRegistry
pub fn new() -> Self
pub fn register(&mut self, config: BashPassConfig)
pub fn enabled_passes(&self) -> Vec<&BashPassConfig>
pub fn get_stats(&self, name: &str) -> Option<&BashPassStats>
pub fn total_passes(&self) -> usize
pub fn enabled_count(&self) -> usize
pub fn update_stats( &mut self, name: &str, changes: u64, time_ms: u64, iter: u32, )
Auto Trait Implementations§
impl Freeze for BashPassRegistry
impl RefUnwindSafe for BashPassRegistry
impl Send for BashPassRegistry
impl Sync for BashPassRegistry
impl Unpin for BashPassRegistry
impl UnsafeUnpin for BashPassRegistry
impl UnwindSafe for BashPassRegistry
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