pub struct QueueConfig {
pub max_visible: usize,
pub max_queued: usize,
pub default_duration: Duration,
pub position: ToastPosition,
pub stagger_offset: u16,
pub dedup_window_ms: u64,
}Expand description
Configuration for the notification queue.
Fields§
§max_visible: usizeMaximum number of toasts visible at once.
max_queued: usizeMaximum number of notifications waiting in queue.
default_duration: DurationDefault auto-dismiss duration.
position: ToastPositionAnchor position for the toast stack.
stagger_offset: u16Vertical spacing between stacked toasts.
dedup_window_ms: u64Time window for deduplication (in ms).
Implementations§
Source§impl QueueConfig
impl QueueConfig
Sourcepub fn max_visible(self, max: usize) -> Self
pub fn max_visible(self, max: usize) -> Self
Set maximum visible toasts.
Sourcepub fn max_queued(self, max: usize) -> Self
pub fn max_queued(self, max: usize) -> Self
Set maximum queued notifications.
Sourcepub fn default_duration(self, duration: Duration) -> Self
pub fn default_duration(self, duration: Duration) -> Self
Set default duration for auto-dismiss.
Sourcepub fn position(self, position: ToastPosition) -> Self
pub fn position(self, position: ToastPosition) -> Self
Set anchor position for the toast stack.
Sourcepub fn stagger_offset(self, offset: u16) -> Self
pub fn stagger_offset(self, offset: u16) -> Self
Set vertical spacing between stacked toasts.
Sourcepub fn dedup_window_ms(self, ms: u64) -> Self
pub fn dedup_window_ms(self, ms: u64) -> Self
Set deduplication time window in milliseconds.
Trait Implementations§
Source§impl Clone for QueueConfig
impl Clone for QueueConfig
Source§fn clone(&self) -> QueueConfig
fn clone(&self) -> QueueConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 QueueConfig
impl Debug for QueueConfig
Auto Trait Implementations§
impl Freeze for QueueConfig
impl RefUnwindSafe for QueueConfig
impl Send for QueueConfig
impl Sync for QueueConfig
impl Unpin for QueueConfig
impl UnsafeUnpin for QueueConfig
impl UnwindSafe for QueueConfig
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