Struct EventAttributes
pub struct EventAttributes { /* private fields */ }
Additional attributes of the event.
Implementations
impl EventAttributes
fn new() -> SelfCreates a new
EventAttributes.fn tracker(&self) -> Option<usize>Retrieves the tracker ID for an event directly, if present.
fn flag(&self) -> Option<Flag>Retrieves the Notify flag for an event directly, if present.
fn info(&self) -> Option<&str>Retrieves the additional info for an event directly, if present.
fn source(&self) -> Option<&str>Retrieves the source for an event directly, if present.
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.
fn set_tracker(&mut self, tracker: usize)Sets the tracker.
fn set_flag(&mut self, flag: Flag)Sets the Notify flag onto the event.
fn set_info(&mut self, info: &str)Sets additional info onto the event.
fn set_process_id(&mut self, process_id: u32)Sets the process id onto the event.
Trait Implementations
impl Clone for EventAttributes
fn clone(&self) -> EventAttributes
impl Debug for EventAttributes
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for EventAttributes
fn default() -> EventAttributes
Auto Trait Implementations
impl Freeze for EventAttributes
impl RefUnwindSafe for EventAttributes
impl Send for EventAttributes
impl Sync for EventAttributes
impl Unpin for EventAttributes
impl UnsafeUnpin for EventAttributes
impl UnwindSafe for EventAttributes
Blanket Implementations
impl<T> Any for EventAttributes
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for EventAttributes
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for EventAttributes
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for EventAttributes
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for EventAttributes
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for EventAttributes
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for EventAttributes
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for EventAttributes
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for EventAttributes
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>