pub struct App<'a> {
pub channel: Channel,
/* private fields */
}
Fields§
§channel: Channel
Implementations§
source§impl<'a> App<'a>
impl<'a> App<'a>
pub fn new() -> Result<Self, Box<dyn Error>>
pub fn run(&mut self) -> Result<(), Box<dyn Error>>
pub fn select_screen(&mut self, screen: Selected)
pub fn quit(&mut self)
pub fn notify_err(&mut self, err: impl Into<Cow<'a, str>>)
pub fn notify_info(&mut self, info: impl Into<Cow<'a, str>>)
pub fn notify_ok(&mut self, text: impl Into<Cow<'a, str>>)
pub fn frame_size(&mut self) -> Rect
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for App<'a>
impl<'a> !Send for App<'a>
impl<'a> !Sync for App<'a>
impl<'a> Unpin for App<'a>
impl<'a> !UnwindSafe for App<'a>
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