pub struct SignerQuarantine { /* private fields */ }Implementations§
Source§impl SignerQuarantine
impl SignerQuarantine
pub fn new(bad_threshold: u32, quarantine_duration: Duration) -> Self
pub fn record_good(&self, signer_id: &str)
pub fn record_bad(&self, signer_id: &str)
pub fn is_quarantined(&self, signer_id: &str) -> bool
pub fn reputation(&self, signer_id: &str) -> Option<SignerReputation>
pub fn quarantined_count(&self) -> usize
pub fn release(&self, signer_id: &str)
Auto Trait Implementations§
impl !Freeze for SignerQuarantine
impl RefUnwindSafe for SignerQuarantine
impl Send for SignerQuarantine
impl Sync for SignerQuarantine
impl Unpin for SignerQuarantine
impl UnsafeUnpin for SignerQuarantine
impl UnwindSafe for SignerQuarantine
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