#[non_exhaustive]pub enum SettingReport {
Unrecognized,
CursorStyle(CursorStyle),
Sgr(Sgr),
Raw(String),
}Expand description
The payload of a DECRPSS reply, Event::SettingReport.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unrecognized
The terminal did not recognize the requested setting (DCS 0 $ r ST).
The reply carries no data at all, so only the request that provoked it
says which setting was turned down.
CursorStyle(CursorStyle)
The cursor style the terminal is using, from a DECRPSS reply
reporting its DECSCUSR setting. Ask for it with
Program::request_cursor_style.
Sgr(Sgr)
SGR parameters for the terminal’s current text attributes.
Request them with write_decrqss
and selector "m". Use Sgr::style
to obtain a Style.
Raw(String)
The setting as the terminal spelled it, for a control function this
library does not decode: the whole CSI sequence without its
introducer, such as >4;2m for xterm’s XTQMODKEYS.
SGR replies with values above u16::MAX also use this variant.
Trait Implementations§
Source§impl Clone for SettingReport
impl Clone for SettingReport
Source§impl Debug for SettingReport
impl Debug for SettingReport
impl Eq for SettingReport
Source§impl PartialEq for SettingReport
impl PartialEq for SettingReport
impl StructuralPartialEq for SettingReport
Auto Trait Implementations§
impl Freeze for SettingReport
impl RefUnwindSafe for SettingReport
impl Send for SettingReport
impl Sync for SettingReport
impl Unpin for SettingReport
impl UnsafeUnpin for SettingReport
impl UnwindSafe for SettingReport
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