pub enum TerminalWarningKind {
BlockedSequence,
UnsupportedSequence,
InvalidUtf8,
SizeClamped,
SecurityPolicy,
}Expand description
Stable category for a recoverable terminal warning.
§Examples
use ailloli_ui_terminal_core::TerminalWarningKind;
assert_ne!(TerminalWarningKind::InvalidUtf8, TerminalWarningKind::SizeClamped);Variants§
BlockedSequence
A recognized escape/control sequence was denied by policy.
UnsupportedSequence
A sequence or parameter combination is not implemented.
InvalidUtf8
Input bytes could not be decoded as valid UTF-8.
SizeClamped
A zero/invalid terminal dimension was clamped.
SecurityPolicy
A broader terminal security-policy condition was reported.
Trait Implementations§
Source§impl Clone for TerminalWarningKind
impl Clone for TerminalWarningKind
Source§fn clone(&self) -> TerminalWarningKind
fn clone(&self) -> TerminalWarningKind
Returns a copy of the value. Read more
1.0.0 · 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 TerminalWarningKind
impl Debug for TerminalWarningKind
Source§impl<'de> Deserialize<'de> for TerminalWarningKind
impl<'de> Deserialize<'de> for TerminalWarningKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TerminalWarningKind
impl PartialEq for TerminalWarningKind
Source§impl Serialize for TerminalWarningKind
impl Serialize for TerminalWarningKind
impl Eq for TerminalWarningKind
impl StructuralPartialEq for TerminalWarningKind
Auto Trait Implementations§
impl Freeze for TerminalWarningKind
impl RefUnwindSafe for TerminalWarningKind
impl Send for TerminalWarningKind
impl Sync for TerminalWarningKind
impl Unpin for TerminalWarningKind
impl UnwindSafe for TerminalWarningKind
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