pub struct TerminalId(/* private fields */);Expand description
A terminal handle. Internally, in the backend, it maps to a PID + monotonic counter
(local) or an ACP schema’s TerminalId (acp).
A newtype rather than a bare String: callers see a “terminal handle” at trait
boundaries, not a plain string.
Implementations§
Trait Implementations§
Source§impl Clone for TerminalId
impl Clone for TerminalId
Source§fn clone(&self) -> TerminalId
fn clone(&self) -> TerminalId
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 moreSource§impl Debug for TerminalId
impl Debug for TerminalId
impl Eq for TerminalId
Source§impl From<TerminalId> for String
impl From<TerminalId> for String
Source§fn from(value: TerminalId) -> Self
fn from(value: TerminalId) -> Self
Converts to this type from the input type.
Source§impl Hash for TerminalId
impl Hash for TerminalId
Source§impl PartialEq for TerminalId
impl PartialEq for TerminalId
Source§fn eq(&self, other: &TerminalId) -> bool
fn eq(&self, other: &TerminalId) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TerminalId
Auto Trait Implementations§
impl Freeze for TerminalId
impl RefUnwindSafe for TerminalId
impl Send for TerminalId
impl Sync for TerminalId
impl Unpin for TerminalId
impl UnsafeUnpin for TerminalId
impl UnwindSafe for TerminalId
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