pub struct ElementProgramBuilder<M: ElementModel> { /* private fields */ }Expand description
Builder for configuring and running an element-based TUI program.
ElementProgramBuilder::new(App)
.with_alt_screen()
.with_fps(30)
.run()
.awaitImplementations§
Source§impl<M: ElementModel> ElementProgramBuilder<M>
impl<M: ElementModel> ElementProgramBuilder<M>
pub fn new(model: M) -> Self
pub fn with_alt_screen(self) -> Self
pub fn without_alt_screen(self) -> Self
pub fn with_mouse_support(self) -> Self
pub fn with_fps(self, fps: u32) -> Self
pub async fn run(self) -> Result<()>
Auto Trait Implementations§
impl<M> Freeze for ElementProgramBuilder<M>where
M: Freeze,
impl<M> RefUnwindSafe for ElementProgramBuilder<M>where
M: RefUnwindSafe,
impl<M> Send for ElementProgramBuilder<M>
impl<M> Sync for ElementProgramBuilder<M>where
M: Sync,
impl<M> Unpin for ElementProgramBuilder<M>where
M: Unpin,
impl<M> UnsafeUnpin for ElementProgramBuilder<M>where
M: UnsafeUnpin,
impl<M> UnwindSafe for ElementProgramBuilder<M>where
M: UnwindSafe,
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