pub struct PaneRef {
pub session_name: SessionName,
pub window_index: u32,
pub pane_index: u32,
}Expand description
Exact pane selector used by SDK DTOs.
This type stores already-structured target components. It deliberately performs no tmux target parsing or server-side lookup.
Fields§
§session_name: SessionNameExact session name component.
window_index: u32Exact window index component.
pane_index: u32Exact pane index component.
Implementations§
Source§impl PaneRef
impl PaneRef
Sourcepub fn new(
session_name: SessionName,
window_index: u32,
pane_index: u32,
) -> Self
pub fn new( session_name: SessionName, window_index: u32, pane_index: u32, ) -> Self
Creates a pane selector from explicit target components.
Sourcepub fn in_first_window(session_name: SessionName, pane_index: u32) -> Self
pub fn in_first_window(session_name: SessionName, pane_index: u32) -> Self
Creates a selector in window index 0.
Sourcepub fn to_proto(&self) -> PaneTarget
pub fn to_proto(&self) -> PaneTarget
Converts this selector to the matching protocol target DTO.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PaneRef
impl<'de> Deserialize<'de> for PaneRef
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
impl Eq for PaneRef
Source§impl From<&PaneRef> for PaneTarget
impl From<&PaneRef> for PaneTarget
Source§impl From<PaneRef> for PaneTarget
impl From<PaneRef> for PaneTarget
Source§impl From<PaneTarget> for PaneRef
impl From<PaneTarget> for PaneRef
Source§fn from(value: PaneTarget) -> Self
fn from(value: PaneTarget) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for PaneRef
Auto Trait Implementations§
impl Freeze for PaneRef
impl RefUnwindSafe for PaneRef
impl Send for PaneRef
impl Sync for PaneRef
impl Unpin for PaneRef
impl UnsafeUnpin for PaneRef
impl UnwindSafe for PaneRef
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