Struct notify::event::EventAttributes
source · [−]pub struct EventAttributes { /* private fields */ }
Expand description
Additional attributes of the event.
Implementations
sourceimpl 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
sourceimpl Clone for EventAttributes
impl Clone for EventAttributes
sourcefn clone(&self) -> EventAttributes
fn clone(&self) -> EventAttributes
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for EventAttributes
impl Debug for EventAttributes
sourceimpl Default for EventAttributes
impl Default for EventAttributes
sourcefn default() -> EventAttributes
fn default() -> EventAttributes
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for EventAttributes
impl Send for EventAttributes
impl Sync for EventAttributes
impl Unpin for EventAttributes
impl UnwindSafe for EventAttributes
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more