pub struct toaster { /* private fields */ }Expand description
Renders the toast stack.
toaster(label: "Notifications",
toast(attrs: attributes! { data-type="success" },
toast_icon(icon(data: icons::CIRCLE_CHECK))
toast_content(
toast_title("Created")
toast_description("The record is live.")
)
toast_close(label: "Close")
)
)Trait Implementations§
Source§impl Component for toaster
impl Component for toaster
Source§type Props<'__props> = ToasterProps<'__props>
type Props<'__props> = ToasterProps<'__props>
The component’s properties. The lifetime covers data borrowed from
the caller.
Source§fn render<'__a, '__props>(
self,
cx: &'__a Cx,
props: Self::Props<'__props>,
) -> impl Future<Output = Result<impl View>> + Send + '__awhere
Self: '__a,
Self::Props<'__props>: '__a,
'__props: '__a,
fn render<'__a, '__props>(
self,
cx: &'__a Cx,
props: Self::Props<'__props>,
) -> impl Future<Output = Result<impl View>> + Send + '__awhere
Self: '__a,
Self::Props<'__props>: '__a,
'__props: '__a,
Renders the component to a [
View]. Read morefn props_builder<'a>() -> <Self::Props<'a> as Props>::Builder
Auto Trait Implementations§
impl Freeze for toaster
impl RefUnwindSafe for toaster
impl Send for toaster
impl Sync for toaster
impl Unpin for toaster
impl UnsafeUnpin for toaster
impl UnwindSafe for toaster
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