CollectingVTActor

Struct CollectingVTActor 

Source
pub struct CollectingVTActor { /* private fields */ }
Expand description

This is an implementation of VTActor that captures the events into an internal vector. It can be iterated via into_iter or have the internal vector extracted via into_vec.

Implementations§

Trait Implementations§

Source§

impl Default for CollectingVTActor

Source§

fn default() -> CollectingVTActor

Returns the “default value” for a type. Read more
Source§

impl IntoIterator for CollectingVTActor

Source§

type Item = VTAction

The type of the elements being iterated over.
Source§

type IntoIter = IntoIter<VTAction>

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
Source§

impl VTActor for CollectingVTActor

Source§

fn print(&mut self, b: char)

The current code should be mapped to a glyph according to the character set mappings and shift states in effect, and that glyph should be displayed. Read more
Source§

fn execute_c0_or_c1(&mut self, control: u8)

The C0 or C1 control function should be executed, which may have any one of a variety of effects, including changing the cursor position, suspending or resuming communications or changing the shift states in effect. Read more
Source§

fn dcs_hook( &mut self, byte: u8, params: &[i64], intermediates: &[u8], ignored_excess_intermediates: bool, )

invoked when a final character arrives in the first part of a device control string. It determines the control function from the private marker, intermediate character(s) and final character, and executes it, passing in the parameter list. It also selects a handler function for the rest of the characters in the control string. Read more
Source§

fn dcs_put(&mut self, byte: u8)

This action passes characters from the data string part of a device control string to a handler that has previously been selected by the dcs_hook action. C0 controls are also passed to the handler. Read more
Source§

fn dcs_unhook(&mut self)

When a device control string is terminated by ST, CAN, SUB or ESC, this action calls the previously selected handler function with an “end of data” parameter. This allows the handler to finish neatly. Read more
Source§

fn esc_dispatch( &mut self, params: &[i64], intermediates: &[u8], ignored_excess_intermediates: bool, byte: u8, )

The final character of an escape sequence has arrived, so determine the control function to be executed from the intermediate character(s) and final character, and execute it. Read more
Source§

fn csi_dispatch( &mut self, params: &[CsiParam], parameters_truncated: bool, byte: u8, )

A final character of a Control Sequence Initiator has arrived, so determine the control function to be executed from private marker, intermediate character(s) and final character, and execute it, passing in the parameter list. Read more
Source§

fn osc_dispatch(&mut self, params: &[&[u8]])

Called when an OSC string is terminated by ST, CAN, SUB or ESC. Read more
Source§

fn apc_dispatch(&mut self, data: Vec<u8>)

Called when an APC string is terminated by ST data is the data contained within the APC sequence.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.