pub struct Toast { /* private fields */ }Expand description
Implementations§
Source§impl Toast
impl Toast
Sourcepub fn level(self, level: ToastLevel) -> Self
pub fn level(self, level: ToastLevel) -> Self
Set the toast level
Sourcepub fn position(self, position: ToastPosition) -> Self
pub fn position(self, position: ToastPosition) -> Self
Set the toast position
Sourcepub fn show_border(self, show: bool) -> Self
pub fn show_border(self, show: bool) -> Self
Show or hide the border
Trait Implementations§
Source§impl StyledView for Toast
impl StyledView for Toast
Source§fn remove_class(&mut self, class: &str)
fn remove_class(&mut self, class: &str)
Remove a CSS class
Source§fn toggle_class(&mut self, class: &str)
fn toggle_class(&mut self, class: &str)
Toggle a CSS class
Source§impl View for Toast
impl View for Toast
Source§fn meta(&self) -> WidgetMeta
fn meta(&self) -> WidgetMeta
Get widget metadata for DOM Read more
Source§fn render(&self, ctx: &mut RenderContext<'_>)
fn render(&self, ctx: &mut RenderContext<'_>)
Render the view to the given context Read more
Source§fn widget_type(&self) -> &'static str
fn widget_type(&self) -> &'static str
Get widget type name (for CSS type selectors) Read more
Source§fn needs_render(&self) -> bool
fn needs_render(&self) -> bool
Check if this widget needs re-rendering Read more
Auto Trait Implementations§
impl Freeze for Toast
impl RefUnwindSafe for Toast
impl Send for Toast
impl Sync for Toast
impl Unpin for Toast
impl UnsafeUnpin for Toast
impl UnwindSafe for Toast
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