pub struct TerminalData {
pub time: Time,
pub command: Option<Command>,
pub state: Option<State>,
}Expand description
Data that are sent between terminals: A timestamp, an optional command, and a state.
Fields§
§time: TimeTimestamp.
command: Option<Command>Optional command from the terminal.
state: Option<State>Optional state from the terminal.
Trait Implementations§
Source§impl Clone for TerminalData
impl Clone for TerminalData
Source§fn clone(&self) -> TerminalData
fn clone(&self) -> TerminalData
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TerminalData
impl Debug for TerminalData
Source§impl<E: Clone + Debug> Getter<TerminalData, E> for Terminal<'_, E>
impl<E: Clone + Debug> Getter<TerminalData, E> for Terminal<'_, E>
Source§fn get(&self) -> Output<TerminalData, E>
fn get(&self) -> Output<TerminalData, E>
Get something.
Source§impl PartialEq for TerminalData
impl PartialEq for TerminalData
Source§impl TryFrom<TerminalData> for Datum<Command>
impl TryFrom<TerminalData> for Datum<Command>
Source§type Error = CannotConvert
type Error = CannotConvert
The type returned in the event of a conversion error.
Source§fn try_from(value: TerminalData) -> Result<Datum<Command>, CannotConvert>
fn try_from(value: TerminalData) -> Result<Datum<Command>, CannotConvert>
Performs the conversion.
Source§impl TryFrom<TerminalData> for Datum<State>
impl TryFrom<TerminalData> for Datum<State>
Source§type Error = CannotConvert
type Error = CannotConvert
The type returned in the event of a conversion error.
Source§fn try_from(value: TerminalData) -> Result<Datum<State>, CannotConvert>
fn try_from(value: TerminalData) -> Result<Datum<State>, CannotConvert>
Performs the conversion.
impl Copy for TerminalData
impl StructuralPartialEq for TerminalData
Auto Trait Implementations§
impl Freeze for TerminalData
impl RefUnwindSafe for TerminalData
impl Send for TerminalData
impl Sync for TerminalData
impl Unpin for TerminalData
impl UnwindSafe for TerminalData
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