pub struct TermuxToast {
pub text: Option<String>,
pub background_color: Option<String>,
pub text_color: Option<String>,
pub position: ToastPosition,
pub short_duration: bool,
}Fields§
§text: Option<String>§background_color: Option<String>§text_color: Option<String>§position: ToastPosition§short_duration: boolImplementations§
Source§impl TermuxToast
impl TermuxToast
pub fn text(self, text: &str) -> Self
pub fn background_color(self, color: &str) -> Self
pub fn text_color(self, color: &str) -> Self
pub fn position(self, position: ToastPosition) -> Self
pub fn short_duration(self, short: bool) -> Self
pub fn new() -> Self
pub fn run(&mut self) -> Result<(), TermuxError>
Auto Trait Implementations§
impl Freeze for TermuxToast
impl RefUnwindSafe for TermuxToast
impl Send for TermuxToast
impl Sync for TermuxToast
impl Unpin for TermuxToast
impl UnsafeUnpin for TermuxToast
impl UnwindSafe for TermuxToast
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