Struct EventAttributes

struct EventAttributes { ... }

Additional attributes of the event.

Implementations

impl EventAttributes

fn new() -> Self

Creates a new EventAttributes.

fn tracker(self: &Self) -> Option<usize>

Retrieves the tracker ID for an event directly, if present.

fn flag(self: &Self) -> Option<Flag>

Retrieves the Notify flag for an event directly, if present.

fn info(self: &Self) -> Option<&str>

Retrieves the additional info for an event directly, if present.

fn source(self: &Self) -> Option<&str>

Retrieves the source for an event directly, if present.

fn process_id(self: &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(self: &mut Self, tracker: usize)

Sets the tracker.

fn set_flag(self: &mut Self, flag: Flag)

Sets the Notify flag onto the event.

fn set_info(self: &mut Self, info: &str)

Sets additional info onto the event.

fn set_process_id(self: &mut Self, process_id: u32)

Sets the process id onto the event.

impl Clone for EventAttributes

fn clone(self: &Self) -> EventAttributes

impl Debug for EventAttributes

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

impl Default for EventAttributes

fn default() -> EventAttributes

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

impl<T> Any for EventAttributes

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for EventAttributes

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for EventAttributes

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for EventAttributes

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for EventAttributes

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for EventAttributes

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, U> Into for EventAttributes

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for EventAttributes

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for EventAttributes

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>