#[repr(i64)]pub enum UNErrorCode {
NotificationsNotAllowed = 1,
AttachmentInvalidUrl = 100,
AttachmentUnrecognizedType = 101,
AttachmentInvalidFileSize = 102,
AttachmentNotInDataStore = 103,
AttachmentMoveIntoDataStoreFailed = 104,
AttachmentCorrupt = 105,
NotificationInvalidNoDate = 1_400,
NotificationInvalidNoContent = 1401,
ContentProvidingObjectNotAllowed = 1_500,
ContentProvidingInvalid = 1_501,
}
Expand description
Constants that identify notification errors.
Variants§
NotificationsNotAllowed = 1
Notifications aren’t allowed.
AttachmentInvalidUrl = 100
The URL for an attachment was invalid.
AttachmentUnrecognizedType = 101
The file type of an attachment isn’t supported.
AttachmentInvalidFileSize = 102
An attachment is too large.
AttachmentNotInDataStore = 103
The specified attachment isn’t in the system data store.
AttachmentMoveIntoDataStoreFailed = 104
An error occurred when trying to move an attachment to the system data store.
AttachmentCorrupt = 105
The file for an attachment is corrupt.
NotificationInvalidNoDate = 1_400
The notification doesn’t have an associated date, but should.
NotificationInvalidNoContent = 1401
The notification has no user-facing content, but should.
ContentProvidingObjectNotAllowed = 1_500
ContentProvidingInvalid = 1_501
Trait Implementations§
Source§impl Clone for UNErrorCode
impl Clone for UNErrorCode
Source§fn clone(&self) -> UNErrorCode
fn clone(&self) -> UNErrorCode
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for UNErrorCode
impl Debug for UNErrorCode
Source§impl Ord for UNErrorCode
impl Ord for UNErrorCode
Source§fn cmp(&self, other: &UNErrorCode) -> Ordering
fn cmp(&self, other: &UNErrorCode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for UNErrorCode
impl PartialEq for UNErrorCode
Source§impl PartialOrd for UNErrorCode
impl PartialOrd for UNErrorCode
impl Copy for UNErrorCode
impl Eq for UNErrorCode
impl StructuralPartialEq for UNErrorCode
Auto Trait Implementations§
impl Freeze for UNErrorCode
impl RefUnwindSafe for UNErrorCode
impl Send for UNErrorCode
impl Sync for UNErrorCode
impl Unpin for UNErrorCode
impl UnwindSafe for UNErrorCode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more