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: SessionNameSession through which the window was addressed.
Pane
A pane-local hook scope.
Trait Implementations§
Source§impl Clone for HookScopeIdentity
impl Clone for HookScopeIdentity
Source§fn clone(&self) -> HookScopeIdentity
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)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HookScopeIdentity
impl Debug for HookScopeIdentity
impl Eq for HookScopeIdentity
Source§impl PartialEq for HookScopeIdentity
impl PartialEq for HookScopeIdentity
impl StructuralPartialEq for HookScopeIdentity
Auto Trait Implementations§
impl Freeze for HookScopeIdentity
impl RefUnwindSafe for HookScopeIdentity
impl Send for HookScopeIdentity
impl Sync for HookScopeIdentity
impl Unpin for HookScopeIdentity
impl UnsafeUnpin for HookScopeIdentity
impl UnwindSafe for HookScopeIdentity
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