pub struct WindowTerminalId {
pub window: WindowId,
pub terminal: TerminalId,
}Expand description
A terminal identified across the whole editor.
TerminalIds are only unique within their owning window’s
TerminalManager — every window numbers its terminals from 0, so two
windows each have a Terminal-0. Any layer that resolves a terminal
without already holding its window — most importantly the async
PTY-output messages routed through the main loop — must carry this
(window, terminal) pair. Resolving by bare TerminalId across
windows is ambiguous: it silently attributes output to whichever
window happens to hold the same local id first.
Fields§
§window: WindowId§terminal: TerminalIdImplementations§
Source§impl WindowTerminalId
impl WindowTerminalId
pub fn new(window: WindowId, terminal: TerminalId) -> Self
Trait Implementations§
Source§impl Clone for WindowTerminalId
impl Clone for WindowTerminalId
Source§fn clone(&self) -> WindowTerminalId
fn clone(&self) -> WindowTerminalId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WindowTerminalId
Source§impl Debug for WindowTerminalId
impl Debug for WindowTerminalId
Source§impl Display for WindowTerminalId
impl Display for WindowTerminalId
impl Eq for WindowTerminalId
Source§impl Hash for WindowTerminalId
impl Hash for WindowTerminalId
Source§impl PartialEq for WindowTerminalId
impl PartialEq for WindowTerminalId
Source§fn eq(&self, other: &WindowTerminalId) -> bool
fn eq(&self, other: &WindowTerminalId) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WindowTerminalId
Auto Trait Implementations§
impl Freeze for WindowTerminalId
impl RefUnwindSafe for WindowTerminalId
impl Send for WindowTerminalId
impl Sync for WindowTerminalId
impl Unpin for WindowTerminalId
impl UnsafeUnpin for WindowTerminalId
impl UnwindSafe for WindowTerminalId
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.