pub struct WindowTarget { /* private fields */ }Expand description
A validated window target.
Implementations§
Source§impl WindowTarget
impl WindowTarget
Sourcepub const fn new(session_name: SessionName) -> Self
pub const fn new(session_name: SessionName) -> Self
Creates a V1-compatible window target for window 0.
Sourcepub const fn with_window(session_name: SessionName, window_index: u32) -> Self
pub const fn with_window(session_name: SessionName, window_index: u32) -> Self
Creates a window target for the provided window index.
Sourcepub const fn session_name(&self) -> &SessionName
pub const fn session_name(&self) -> &SessionName
Returns the session name component.
Sourcepub const fn window_index(&self) -> u32
pub const fn window_index(&self) -> u32
Returns the addressed window index.
Trait Implementations§
Source§impl Clone for WindowTarget
impl Clone for WindowTarget
Source§fn clone(&self) -> WindowTarget
fn clone(&self) -> WindowTarget
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 WindowTarget
impl Debug for WindowTarget
Source§impl<'de> Deserialize<'de> for WindowTarget
impl<'de> Deserialize<'de> for WindowTarget
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 WindowTarget
impl Display for WindowTarget
Source§impl Hash for WindowTarget
impl Hash for WindowTarget
Source§impl PartialEq for WindowTarget
impl PartialEq for WindowTarget
Source§fn eq(&self, other: &WindowTarget) -> bool
fn eq(&self, other: &WindowTarget) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for WindowTarget
impl Serialize for WindowTarget
impl Eq for WindowTarget
impl StructuralPartialEq for WindowTarget
Auto Trait Implementations§
impl Freeze for WindowTarget
impl RefUnwindSafe for WindowTarget
impl Send for WindowTarget
impl Sync for WindowTarget
impl Unpin for WindowTarget
impl UnsafeUnpin for WindowTarget
impl UnwindSafe for WindowTarget
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