XdgNotificationCategory

Enum XdgNotificationCategory 

Source
pub enum XdgNotificationCategory {
Show 25 variants Call, CallEnded, CallIncoming, CallUnanswered, Device, DeviceAdded, DeviceError, DeviceRemoved, Email, EmailArrived, EmailBounced, Im, ImError, ImReceived, Network, NetworkConnected, NetworkDisconnected, NetworkError, Presence, PresenceOffline, PresenceOnline, Transfer, TransferComplete, TransferError, Custom(String),
}
Expand description

Variants§

§

Call

A generic audio or video call notification that doesn’t fit into any other category.

§

CallEnded

An audio or video call was ended.

§

CallIncoming

A audio or video call is incoming.

§

CallUnanswered

An incoming audio or video call was not answered.

§

Device

A generic device-related notification that doesn’t fit into any other category.

§

DeviceAdded

A device, such as a USB device, was added to the system.

§

DeviceError

A device had some kind of error.

§

DeviceRemoved

A device, such as a USB device, was removed from the system.

§

Email

A generic e-mail-related notification that doesn’t fit into any other category.

§

EmailArrived

A new e-mail notification.

§

EmailBounced

A notification stating that an e-mail has bounced.

§

Im

A generic instant message-related notification that doesn’t fit into any other category.

§

ImError

An instant message error notification.

§

ImReceived

A received instant message notification.

§

Network

A generic network notification that doesn’t fit into any other category.

§

NetworkConnected

A network connection notification, such as successful sign-on to a network service. This should not be confused with device.added for new network devices.

§

NetworkDisconnected

A network disconnected notification. This should not be confused with device.removed for disconnected network devices.

§

NetworkError

A network-related or connection-related error.

§

Presence

A generic presence change notification that doesn’t fit into any other category, such as going away or idle.

§

PresenceOffline

An offline presence change notification.

§

PresenceOnline

An online presence change notification.

§

Transfer

A generic file transfer or download notification that doesn’t fit into any other category.

§

TransferComplete

A file transfer or download complete notification.

§

TransferError

A file transfer or download error.

§

Custom(String)

Allows custom Category If it is not standard, then category should be in the form of “x-vendor.class.name.”

Trait Implementations§

Source§

impl Debug for XdgNotificationCategory

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Display for XdgNotificationCategory

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more