pub struct Program<M: Model> { /* private fields */ }Expand description
Program is the runner for a Bubble Tea v2.0.8 application.
Implementations§
Source§impl<M: Model> Program<M>
impl<M: Model> Program<M>
Sourcepub fn with_options(self, options: ProgramOptions<M>) -> Self
pub fn with_options(self, options: ProgramOptions<M>) -> Self
Sets custom program options.
Sourcepub fn send(&self, msg: Box<dyn Msg>)
pub fn send(&self, msg: Box<dyn Msg>)
Sourcepub fn quit(&self)
pub fn quit(&self)
Sourcepub fn kill(&mut self)
pub fn kill(&mut self)
Sourcepub fn println(&self, args: &str)
pub fn println(&self, args: &str)
Auto Trait Implementations§
impl<M> !RefUnwindSafe for Program<M>
impl<M> !UnwindSafe for Program<M>
impl<M> Freeze for Program<M>where
M: Freeze,
impl<M> Send for Program<M>
impl<M> Sync for Program<M>
impl<M> Unpin for Program<M>where
M: Unpin,
impl<M> UnsafeUnpin for Program<M>where
M: UnsafeUnpin,
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