pub struct ErrorDialog { /* private fields */ }Implementations§
Source§impl ErrorDialog
impl ErrorDialog
pub fn new() -> Self
pub fn set_error(&mut self, message: &str)
pub fn handle_key(&self, event: KeyEvent) -> Option<ErrorMsg>
pub fn draw(&self, f: &mut Frame<'_>, area: Rect, _focused: bool)
pub fn update<ParentMsg>( &mut self, msg: ErrorMsg, map: impl Fn(ErrorOutput) -> ParentMsg, ) -> Option<ParentMsg>
Trait Implementations§
Source§impl Component for ErrorDialog
impl Component for ErrorDialog
type Msg = ErrorMsg
type Output = ErrorOutput
Source§fn update<ParentMsg>(
&mut self,
msg: Self::Msg,
map: impl Fn(Self::Output) -> ParentMsg,
) -> Option<ParentMsg>
fn update<ParentMsg>( &mut self, msg: Self::Msg, map: impl Fn(Self::Output) -> ParentMsg, ) -> Option<ParentMsg>
Handle a component-level message and optionally emit output to parent.
Source§impl Debug for ErrorDialog
impl Debug for ErrorDialog
Source§impl Default for ErrorDialog
impl Default for ErrorDialog
Source§fn default() -> ErrorDialog
fn default() -> ErrorDialog
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ErrorDialog
impl RefUnwindSafe for ErrorDialog
impl Send for ErrorDialog
impl Sync for ErrorDialog
impl Unpin for ErrorDialog
impl UnsafeUnpin for ErrorDialog
impl UnwindSafe for ErrorDialog
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