pub struct MonitorUi { /* private fields */ }Implementations§
Source§impl MonitorUi
impl MonitorUi
pub fn new(model: MonitorModel, options: MonitorUiOptions) -> Self
pub fn active_screen(&self) -> MonitorScreen
pub fn model(&self) -> &MonitorModel
pub fn set_active_screen(&mut self, screen: MonitorScreen)
pub fn handle_event(&mut self, event: MonitorUiEvent) -> MonitorUiAction
pub fn handle_key(&mut self, key: MonitorUiKey) -> MonitorUiAction
pub fn handle_char_key(&mut self, key: char) -> MonitorUiAction
pub fn scroll(&mut self, direction: ScrollDirection, steps: usize)
pub fn click(&mut self, x: u16, y: u16) -> MonitorUiAction
pub fn mark_graph_dirty(&mut self)
pub fn draw(&mut self, f: &mut Frame<'_>)
pub fn draw_content(&mut self, f: &mut Frame<'_>, area: Rect)
Auto Trait Implementations§
impl Freeze for MonitorUi
impl RefUnwindSafe for MonitorUi
impl Send for MonitorUi
impl Sync for MonitorUi
impl Unpin for MonitorUi
impl UnsafeUnpin for MonitorUi
impl UnwindSafe for MonitorUi
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more