pub struct PatternSync { /* private fields */ }Implementations§
Source§impl PatternSync
impl PatternSync
pub fn new() -> Self
pub fn last_round(&self) -> u64
pub fn add_pattern(&mut self, pattern: SyncedPattern)
pub fn drain_pending(&mut self) -> Vec<SyncedPattern>
pub fn pending_count(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PatternSync
impl RefUnwindSafe for PatternSync
impl Send for PatternSync
impl Sync for PatternSync
impl Unpin for PatternSync
impl UnsafeUnpin for PatternSync
impl UnwindSafe for PatternSync
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