pub struct ToastBuilder { /* private fields */ }Expand description
A builder-pattern type to construct Toast objects.
Implementations§
Source§impl ToastBuilder
impl ToastBuilder
pub fn action_name(self, action_name: impl Into<GString>) -> Self
pub fn action_target(self, action_target: &Variant) -> Self
pub fn custom_title(self, custom_title: &impl IsA<Widget>) -> Self
pub fn priority(self, priority: ToastPriority) -> Self
pub fn timeout(self, timeout: u32) -> Self
pub fn title(self, title: impl Into<GString>) -> Self
pub fn use_markup(self, use_markup: bool) -> Self
Auto Trait Implementations§
impl Freeze for ToastBuilder
impl RefUnwindSafe for ToastBuilder
impl !Send for ToastBuilder
impl !Sync for ToastBuilder
impl Unpin for ToastBuilder
impl UnwindSafe for ToastBuilder
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