pub struct NotificationPanelConfig {
pub position: NotificationPosition,
pub max_visible: usize,
pub width: f32,
pub gap: f32,
}Expand description
Configuration for the notification panel
Fields§
§position: NotificationPositionPosition on screen
max_visible: usizeMaximum number of toasts shown when the stack is expanded, or when only one toast is queued
width: f32Toast width
gap: f32Gap between toasts
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NotificationPanelConfig
impl RefUnwindSafe for NotificationPanelConfig
impl Send for NotificationPanelConfig
impl Sync for NotificationPanelConfig
impl Unpin for NotificationPanelConfig
impl UnsafeUnpin for NotificationPanelConfig
impl UnwindSafe for NotificationPanelConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more