pub struct LogsViewer<CA, CM>{ /* private fields */ }Expand description
Implementations§
Source§impl<CA, CM> LogsViewer<CA, CM>
impl<CA, CM> LogsViewer<CA, CM>
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new LogsViewer component with the given [CommonArg].
Trait Implementations§
Source§impl<CID, CA, CS, CM> Component<CID, CA, CS, CM> for LogsViewer<CA, CM>
impl<CID, CA, CS, CM> Component<CID, CA, CS, CM> for LogsViewer<CA, CM>
Source§fn on_event(
&mut self,
ev: EzEvent<CID, CM>,
_: &mut State<CS>,
) -> Vec<EzEvent<CID, CM>>
fn on_event( &mut self, ev: EzEvent<CID, CM>, _: &mut State<CS>, ) -> Vec<EzEvent<CID, CM>>
Method to implement to handle events.
The component will receive any event if it is focused; but only events it is subscribed to otherwise.
Source§fn init(&mut self, state: &mut State<CS>) -> Vec<EzEvent<CID, CM>>
fn init(&mut self, state: &mut State<CS>) -> Vec<EzEvent<CID, CM>>
Method called on first tick only.
Source§impl<CA, CM> Debug for LogsViewer<CA, CM>
impl<CA, CM> Debug for LogsViewer<CA, CM>
Source§impl<CA, CM> Default for LogsViewer<CA, CM>
impl<CA, CM> Default for LogsViewer<CA, CM>
Source§impl<CA, CM> MockComponent for LogsViewer<CA, CM>
impl<CA, CM> MockComponent for LogsViewer<CA, CM>
Auto Trait Implementations§
impl<CA, CM> !RefUnwindSafe for LogsViewer<CA, CM>
impl<CA, CM> !UnwindSafe for LogsViewer<CA, CM>
impl<CA, CM> Freeze for LogsViewer<CA, CM>
impl<CA, CM> Send for LogsViewer<CA, CM>
impl<CA, CM> Sync for LogsViewer<CA, CM>
impl<CA, CM> Unpin for LogsViewer<CA, CM>
impl<CA, CM> UnsafeUnpin for LogsViewer<CA, CM>
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