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
)