pub struct OutputEvent { /* private fields */ }Expand description
A single pane-output event retained by an OutputRing.
Implementations§
Source§impl OutputEvent
impl OutputEvent
Creates an output event from already shared bytes.
Sourcepub fn passthroughs(&self) -> &[TerminalPassthrough]
pub fn passthroughs(&self) -> &[TerminalPassthrough]
Returns terminal passthrough events produced by this output event.
Sourcepub fn into_bytes(self) -> Vec<u8> ⓘ
pub fn into_bytes(self) -> Vec<u8> ⓘ
Consumes this event and returns its raw bytes.
Sourcepub fn into_parts(self) -> (Vec<u8>, Vec<TerminalPassthrough>)
pub fn into_parts(self) -> (Vec<u8>, Vec<TerminalPassthrough>)
Consumes this event and returns both raw bytes and terminal side effects.
Sourcepub fn into_passthroughs(self) -> Vec<TerminalPassthrough>
pub fn into_passthroughs(self) -> Vec<TerminalPassthrough>
Consumes this event and returns only terminal side effects.
Live render subscribers already derive visible state from the pane transcript, so cloning raw output bytes just to inspect passthroughs is unnecessary on that hot path.
Sourcepub fn with_passthroughs(self, passthroughs: Vec<TerminalPassthrough>) -> Self
pub fn with_passthroughs(self, passthroughs: Vec<TerminalPassthrough>) -> Self
Returns a copy of this event carrying terminal passthrough side effects.
Trait Implementations§
Source§impl Clone for OutputEvent
impl Clone for OutputEvent
Source§fn clone(&self) -> OutputEvent
fn clone(&self) -> OutputEvent
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 OutputEvent
impl Debug for OutputEvent
impl Eq for OutputEvent
Source§impl PartialEq for OutputEvent
impl PartialEq for OutputEvent
Source§fn eq(&self, other: &OutputEvent) -> bool
fn eq(&self, other: &OutputEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OutputEvent
Auto Trait Implementations§
impl Freeze for OutputEvent
impl RefUnwindSafe for OutputEvent
impl Send for OutputEvent
impl Sync for OutputEvent
impl Unpin for OutputEvent
impl UnsafeUnpin for OutputEvent
impl UnwindSafe for OutputEvent
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