Struct notify::event::EventAttributes [−][src]
pub struct EventAttributes { /* fields omitted */ }
Expand description
Additional attributes of the event.
Implementations
impl EventAttributes
[src]
impl EventAttributes
[src]pub fn tracker(&self) -> Option<usize>
[src]
pub fn tracker(&self) -> Option<usize>
[src]Retrieves the tracker ID for an event directly, if present.
pub fn info(&self) -> Option<&str>
[src]
pub fn info(&self) -> Option<&str>
[src]Retrieves the additional info for an event directly, if present.
pub fn process_id(&self) -> Option<u32>
[src]
pub fn process_id(&self) -> Option<u32>
[src]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.
pub fn set_tracker(&mut self, tracker: usize)
[src]
pub fn set_tracker(&mut self, tracker: usize)
[src]Sets the tracker.
pub fn set_process_id(&mut self, process_id: u32)
[src]
pub fn set_process_id(&mut self, process_id: u32)
[src]Sets the process id onto the event.
Trait Implementations
impl Clone for EventAttributes
[src]
impl Clone for EventAttributes
[src]fn clone(&self) -> EventAttributes
[src]
fn clone(&self) -> EventAttributes
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Default for EventAttributes
[src]
impl Default for EventAttributes
[src]fn default() -> EventAttributes
[src]
fn default() -> EventAttributes
[src]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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more