pub enum PaneTargetRef {
Slot(PaneTarget),
Id {
session_name: SessionName,
pane_id: PaneId,
},
}Expand description
Pane selector for SDK operations that can address either a display slot or a stable pane identity.
Variants§
Slot(PaneTarget)
Existing slot-based selector.
Id
Stable pane id scoped by session name.
Fields
§
session_name: SessionNameExact session name component.
Implementations§
Source§impl PaneTargetRef
impl PaneTargetRef
Sourcepub const fn slot(target: PaneTarget) -> Self
pub const fn slot(target: PaneTarget) -> Self
Creates a selector for an existing slot target.
Sourcepub const fn by_id(session_name: SessionName, pane_id: PaneId) -> Self
pub const fn by_id(session_name: SessionName, pane_id: PaneId) -> Self
Creates a selector for a stable pane id in a session.
Sourcepub const fn session_name(&self) -> &SessionName
pub const fn session_name(&self) -> &SessionName
Returns the session name component.
Trait Implementations§
Source§impl Clone for PaneTargetRef
impl Clone for PaneTargetRef
Source§fn clone(&self) -> PaneTargetRef
fn clone(&self) -> PaneTargetRef
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 PaneTargetRef
impl Debug for PaneTargetRef
Source§impl<'de> Deserialize<'de> for PaneTargetRef
impl<'de> Deserialize<'de> for PaneTargetRef
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
Source§impl Display for PaneTargetRef
impl Display for PaneTargetRef
Source§impl From<PaneTarget> for PaneTargetRef
impl From<PaneTarget> for PaneTargetRef
Source§fn from(value: PaneTarget) -> Self
fn from(value: PaneTarget) -> Self
Converts to this type from the input type.
Source§impl Hash for PaneTargetRef
impl Hash for PaneTargetRef
Source§impl PartialEq for PaneTargetRef
impl PartialEq for PaneTargetRef
Source§fn eq(&self, other: &PaneTargetRef) -> bool
fn eq(&self, other: &PaneTargetRef) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PaneTargetRef
impl Serialize for PaneTargetRef
impl Eq for PaneTargetRef
impl StructuralPartialEq for PaneTargetRef
Auto Trait Implementations§
impl Freeze for PaneTargetRef
impl RefUnwindSafe for PaneTargetRef
impl Send for PaneTargetRef
impl Sync for PaneTargetRef
impl Unpin for PaneTargetRef
impl UnsafeUnpin for PaneTargetRef
impl UnwindSafe for PaneTargetRef
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