pub struct WindowRef {
pub session_name: SessionName,
pub window_index: u32,
}Expand description
Exact window 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.
Implementations§
Source§impl WindowRef
impl WindowRef
Sourcepub fn new(session_name: SessionName, window_index: u32) -> Self
pub fn new(session_name: SessionName, window_index: u32) -> Self
Creates a window selector from explicit target components.
Sourcepub fn first(session_name: SessionName) -> Self
pub fn first(session_name: SessionName) -> Self
Creates a selector for window index 0 in the given session.
Sourcepub fn to_proto(&self) -> WindowTarget
pub fn to_proto(&self) -> WindowTarget
Converts this selector to the matching protocol target DTO.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WindowRef
impl<'de> Deserialize<'de> for WindowRef
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 WindowRef
Source§impl From<&WindowRef> for WindowTarget
impl From<&WindowRef> for WindowTarget
Source§impl From<WindowRef> for WindowTarget
impl From<WindowRef> for WindowTarget
Source§impl From<WindowTarget> for WindowRef
impl From<WindowTarget> for WindowRef
Source§fn from(value: WindowTarget) -> Self
fn from(value: WindowTarget) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for WindowRef
Auto Trait Implementations§
impl Freeze for WindowRef
impl RefUnwindSafe for WindowRef
impl Send for WindowRef
impl Sync for WindowRef
impl Unpin for WindowRef
impl UnsafeUnpin for WindowRef
impl UnwindSafe for WindowRef
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