pub struct TerminalError { /* private fields */ }Expand description
Terminal emission failure paired with elapsed operation time.
Implementations§
Source§impl TerminalError
impl TerminalError
Sourcepub const fn emission_error(&self) -> &EmissionError
pub const fn emission_error(&self) -> &EmissionError
Returns the emission failure.
Sourcepub fn into_emission_error(self) -> EmissionError
pub fn into_emission_error(self) -> EmissionError
Consumes the terminal error and returns its emission failure.
Sourcepub fn into_parts(self) -> (Duration, EmissionError)
pub fn into_parts(self) -> (Duration, EmissionError)
Consumes the terminal error and returns elapsed time and failure.
Trait Implementations§
Source§impl Clone for TerminalError
impl Clone for TerminalError
Source§fn clone(&self) -> TerminalError
fn clone(&self) -> TerminalError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TerminalError
impl Debug for TerminalError
Source§impl Display for TerminalError
impl Display for TerminalError
Auto Trait Implementations§
impl !RefUnwindSafe for TerminalError
impl !UnwindSafe for TerminalError
impl Freeze for TerminalError
impl Send for TerminalError
impl Sync for TerminalError
impl Unpin for TerminalError
impl UnsafeUnpin for TerminalError
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