Struct vtparse::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
sourceimpl Default for CollectingVTActor
impl Default for CollectingVTActor
sourcefn default() -> CollectingVTActor
fn default() -> CollectingVTActor
Returns the “default value” for a type. Read more
sourceimpl IntoIterator for CollectingVTActor
impl IntoIterator for CollectingVTActor
sourceimpl VTActor for CollectingVTActor
impl VTActor for CollectingVTActor
sourcefn print(&mut self, b: char)
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
sourcefn execute_c0_or_c1(&mut self, control: u8)
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
sourcefn dcs_hook(
&mut self,
byte: u8,
params: &[i64],
intermediates: &[u8],
ignored_excess_intermediates: bool
)
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
sourcefn dcs_put(&mut self, byte: u8)
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
sourcefn dcs_unhook(&mut self)
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
sourcefn esc_dispatch(
&mut self,
params: &[i64],
intermediates: &[u8],
ignored_excess_intermediates: bool,
byte: u8
)
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
sourcefn csi_dispatch(
&mut self,
params: &[CsiParam],
parameters_truncated: bool,
byte: u8
)
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
sourcefn osc_dispatch(&mut self, params: &[&[u8]])
fn osc_dispatch(&mut self, params: &[&[u8]])
Called when an OSC string is terminated by ST, CAN, SUB or ESC. Read more
sourcefn apc_dispatch(&mut self, data: Vec<u8>)
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. Read more
Auto Trait Implementations
impl RefUnwindSafe for CollectingVTActor
impl Send for CollectingVTActor
impl Sync for CollectingVTActor
impl Unpin for CollectingVTActor
impl UnwindSafe for CollectingVTActor
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more