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§fn clone(&self) -> RelaySeenConfig
fn clone(&self) -> RelaySeenConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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