pub struct RelaySeenConfig {
pub capacity: usize,
pub retention: Duration,
}Expand description
Configuration for RelaySeenCache.
Fields§
§capacity: usizeMaximum ids tracked at once.
retention: DurationHow long an id stays suppressed.
Trait Implementations§
Source§impl Clone for RelaySeenConfig
impl Clone for RelaySeenConfig
Source§impl Debug for RelaySeenConfig
impl Debug for RelaySeenConfig
Auto Trait Implementations§
impl Freeze for RelaySeenConfig
impl RefUnwindSafe for RelaySeenConfig
impl Send for RelaySeenConfig
impl Sync for RelaySeenConfig
impl Unpin for RelaySeenConfig
impl UnsafeUnpin for RelaySeenConfig
impl UnwindSafe for RelaySeenConfig
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