Skip to main content

HookScopeIdentity

Enum HookScopeIdentity 

Source
pub enum HookScopeIdentity {
    Global,
    Session(SessionName),
    Window {
        session_name: SessionName,
        window_id: WindowId,
    },
    Pane {
        session_name: SessionName,
        window_id: WindowId,
        pane_id: PaneId,
    },
}
Expand description

Stable identity used to address a hook scope after target resolution.

Window and pane bindings use server-wide identities so linked windows and grouped-session aliases share one logical binding. The session name stays attached to window and pane scopes because session hooks remain local to a session even when its windows are shared.

Variants§

§

Global

A global hook root.

§

Session(SessionName)

A session-local hook scope.

§

Window

A window-local hook scope.

Fields

§session_name: SessionName

Session through which the window was addressed.

§window_id: WindowId

Stable identity shared by every link to the window.

§

Pane

A pane-local hook scope.

Fields

§session_name: SessionName

Session through which the pane was addressed.

§window_id: WindowId

Stable identity of the pane’s containing window.

§pane_id: PaneId

Stable identity shared by every alias of the pane.

Trait Implementations§

Source§

impl Clone for HookScopeIdentity

Source§

fn clone(&self) -> HookScopeIdentity

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for HookScopeIdentity

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for HookScopeIdentity

Source§

impl PartialEq for HookScopeIdentity

Source§

fn eq(&self, other: &HookScopeIdentity) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for HookScopeIdentity

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.