Struct notify::event::EventAttributes
source · pub struct EventAttributes { /* private fields */ }
Expand description
Additional attributes of the event.
Implementations§
source§impl EventAttributes
impl EventAttributes
sourcepub fn tracker(&self) -> Option<usize>
pub fn tracker(&self) -> Option<usize>
Retrieves the tracker ID for an event directly, if present.
sourcepub fn flag(&self) -> Option<Flag>
pub fn flag(&self) -> Option<Flag>
Retrieves the Notify flag for an event directly, if present.
sourcepub fn info(&self) -> Option<&str>
pub fn info(&self) -> Option<&str>
Retrieves the additional info for an event directly, if present.
sourcepub fn process_id(&self) -> Option<u32>
pub fn process_id(&self) -> Option<u32>
The process ID of the originator of the event.
This attribute is experimental and, while included in Notify itself, is not considered stable or standard enough to be part of the serde, eq, hash, and debug representations.
sourcepub fn set_tracker(&mut self, tracker: usize)
pub fn set_tracker(&mut self, tracker: usize)
Sets the tracker.
sourcepub fn set_process_id(&mut self, process_id: u32)
pub fn set_process_id(&mut self, process_id: u32)
Sets the process id onto the event.
Trait Implementations§
source§impl Clone for EventAttributes
impl Clone for EventAttributes
source§fn clone(&self) -> EventAttributes
fn clone(&self) -> EventAttributes
Returns a copy 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 Debug for EventAttributes
impl Debug for EventAttributes
source§impl Default for EventAttributes
impl Default for EventAttributes
source§fn default() -> EventAttributes
fn default() -> EventAttributes
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EventAttributes
impl RefUnwindSafe for EventAttributes
impl Send for EventAttributes
impl Sync for EventAttributes
impl Unpin for EventAttributes
impl UnwindSafe for EventAttributes
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)