kvarn_extensions::push

Struct SmartPush

source
pub struct SmartPush { /* private fields */ }
Available on crate feature push only.

Implementations§

source§

impl SmartPush

source

pub fn new(clear_interval: Duration, check_every_request: u32) -> Self

clear_interval is the duration between clearing the log of who’s been pushed content.

check_every_request is the number of requests between checks if the duration has expired.

Trait Implementations§

source§

impl Default for SmartPush

source§

fn default() -> Self

Returns the “default value” for a type. Read mo