pub struct TLineBuilder { /* private fields */ }Expand description
A builder consuming a string assumed to contain TTY sequences and building a TLine.
Implementations§
Trait Implementations§
Source§impl Debug for TLineBuilder
impl Debug for TLineBuilder
Source§impl Default for TLineBuilder
impl Default for TLineBuilder
Source§fn default() -> TLineBuilder
fn default() -> TLineBuilder
Returns the “default value” for a type. Read more
Source§impl Perform for TLineBuilder
impl Perform for TLineBuilder
Source§fn csi_dispatch(
&mut self,
params: &Params,
_intermediates: &[u8],
_ignore: bool,
action: char,
)
fn csi_dispatch( &mut self, params: &Params, _intermediates: &[u8], _ignore: bool, action: char, )
A final character has arrived for a CSI sequence Read more
Source§fn hook(
&mut self,
_params: &Params,
_intermediates: &[u8],
_ignore: bool,
_action: char,
)
fn hook( &mut self, _params: &Params, _intermediates: &[u8], _ignore: bool, _action: char, )
Invoked when a final character arrives in first part of device control
string. Read more
Source§fn put(&mut self, _byte: u8)
fn put(&mut self, _byte: u8)
Pass bytes as part of a device control string to the handle chosen in
hook. C0 controls will also be passed to the handler.Source§fn osc_dispatch(&mut self, _params: &[&[u8]], _bell_terminated: bool)
fn osc_dispatch(&mut self, _params: &[&[u8]], _bell_terminated: bool)
Dispatch an operating system command.
Source§fn esc_dispatch(&mut self, _intermediates: &[u8], _ignore: bool, _byte: u8)
fn esc_dispatch(&mut self, _intermediates: &[u8], _ignore: bool, _byte: u8)
The final character of an escape sequence has arrived. Read more
Source§fn terminated(&self) -> bool
fn terminated(&self) -> bool
Whether the parser should terminate prematurely. Read more
Auto Trait Implementations§
impl Freeze for TLineBuilder
impl RefUnwindSafe for TLineBuilder
impl Send for TLineBuilder
impl Sync for TLineBuilder
impl Unpin for TLineBuilder
impl UnwindSafe for TLineBuilder
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
Source§impl<T, Ctx> BundleDefault<Ctx> for Twhere
T: Default,
impl<T, Ctx> BundleDefault<Ctx> for Twhere
T: Default,
Source§fn default_with_context(_: Ctx) -> T
fn default_with_context(_: Ctx) -> T
Creates a default value with the given context.
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().