pub enum HostRole {
Relay,
Host,
}Expand description
Which participant answers VT queries for a pane.
Variants§
Relay
tear relays query bytes downstream and answers nothing. The attached terminal is the host.
The DEFAULT, and the currently shipped behaviour — a pane in this role is byte-for-byte what tear did before the response path existed, which is what makes landing that path a no-op today.
Host
tear answers queries itself and queues the reply for write-back to the PTY.
Required once the attached client has no parser of its own. Setting this while a parsing terminal is still attached produces DOUBLE replies — see the module doc.
Implementations§
Trait Implementations§
impl Copy for HostRole
Source§impl<'de> Deserialize<'de> for HostRole
impl<'de> Deserialize<'de> for HostRole
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
impl Eq for HostRole
impl StructuralPartialEq for HostRole
Auto Trait Implementations§
impl Freeze for HostRole
impl RefUnwindSafe for HostRole
impl Send for HostRole
impl Sync for HostRole
impl Unpin for HostRole
impl UnsafeUnpin for HostRole
impl UnwindSafe for HostRole
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