pub struct NowSessionWindowRecEventMsg<'a> { /* private fields */ }Expand description
The NOW_SESSION_WINDOW_REC_EVENT_MSG message is sent by the server to notify of window recording events such as active window changes, title changes, or when no window is active.
NOW_PROTO: NOW_SESSION_WINDOW_REC_EVENT_MSG
Implementations§
Source§impl<'a> NowSessionWindowRecEventMsg<'a>
impl<'a> NowSessionWindowRecEventMsg<'a>
pub fn active_window( timestamp: u64, process_id: u32, title: impl Into<Cow<'a, str>>, executable_path: impl Into<Cow<'a, str>>, ) -> EncodeResult<Self>
pub fn title_changed( timestamp: u64, title: impl Into<Cow<'a, str>>, ) -> EncodeResult<Self>
pub fn no_active_window(timestamp: u64) -> Self
pub fn timestamp(&self) -> u64
pub fn kind(&self) -> &WindowRecEventKind<'a>
Trait Implementations§
Source§impl<'a> Clone for NowSessionWindowRecEventMsg<'a>
impl<'a> Clone for NowSessionWindowRecEventMsg<'a>
Source§fn clone(&self) -> NowSessionWindowRecEventMsg<'a>
fn clone(&self) -> NowSessionWindowRecEventMsg<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for NowSessionWindowRecEventMsg<'a>
impl<'a> Debug for NowSessionWindowRecEventMsg<'a>
Source§impl<'de> Decode<'de> for NowSessionWindowRecEventMsg<'de>
impl<'de> Decode<'de> for NowSessionWindowRecEventMsg<'de>
Source§fn decode(src: &mut ReadCursor<'de>) -> DecodeResult<Self>
fn decode(src: &mut ReadCursor<'de>) -> DecodeResult<Self>
Decodes an instance of
Self from the given byte stream. Read moreSource§impl Encode for NowSessionWindowRecEventMsg<'_>
impl Encode for NowSessionWindowRecEventMsg<'_>
Source§impl<'a> From<NowSessionWindowRecEventMsg<'a>> for NowMessage<'a>
impl<'a> From<NowSessionWindowRecEventMsg<'a>> for NowMessage<'a>
Source§fn from(value: NowSessionWindowRecEventMsg<'a>) -> Self
fn from(value: NowSessionWindowRecEventMsg<'a>) -> Self
Converts to this type from the input type.
Source§impl IntoOwned for NowSessionWindowRecEventMsg<'_>
impl IntoOwned for NowSessionWindowRecEventMsg<'_>
Source§type Owned = NowSessionWindowRecEventMsg<'static>
type Owned = NowSessionWindowRecEventMsg<'static>
The resulting type after obtaining ownership.
Source§fn into_owned(self) -> Self::Owned
fn into_owned(self) -> Self::Owned
Creates owned data from data.
Source§impl<'a> PartialEq for NowSessionWindowRecEventMsg<'a>
impl<'a> PartialEq for NowSessionWindowRecEventMsg<'a>
Source§fn eq(&self, other: &NowSessionWindowRecEventMsg<'a>) -> bool
fn eq(&self, other: &NowSessionWindowRecEventMsg<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> Eq for NowSessionWindowRecEventMsg<'a>
impl<'a> StructuralPartialEq for NowSessionWindowRecEventMsg<'a>
Auto Trait Implementations§
impl<'a> Freeze for NowSessionWindowRecEventMsg<'a>
impl<'a> RefUnwindSafe for NowSessionWindowRecEventMsg<'a>
impl<'a> Send for NowSessionWindowRecEventMsg<'a>
impl<'a> Sync for NowSessionWindowRecEventMsg<'a>
impl<'a> Unpin for NowSessionWindowRecEventMsg<'a>
impl<'a> UnwindSafe for NowSessionWindowRecEventMsg<'a>
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