pub enum AttachmentErrorKind {
NotFound,
UnsupportedExtension,
TooLarge,
UnreadableImage,
}Expand description
Discriminator for AttachmentError. Carried over the wire on
UiEvent::AttachmentError so RPC clients can branch programmatically.
Variants§
Trait Implementations§
Source§impl Clone for AttachmentErrorKind
impl Clone for AttachmentErrorKind
Source§fn clone(&self) -> AttachmentErrorKind
fn clone(&self) -> AttachmentErrorKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AttachmentErrorKind
impl Debug for AttachmentErrorKind
Source§impl<'de> Deserialize<'de> for AttachmentErrorKind
impl<'de> Deserialize<'de> for AttachmentErrorKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AttachmentErrorKind
impl PartialEq for AttachmentErrorKind
Source§fn eq(&self, other: &AttachmentErrorKind) -> bool
fn eq(&self, other: &AttachmentErrorKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AttachmentErrorKind
impl Serialize for AttachmentErrorKind
impl Copy for AttachmentErrorKind
impl Eq for AttachmentErrorKind
impl StructuralPartialEq for AttachmentErrorKind
Auto Trait Implementations§
impl Freeze for AttachmentErrorKind
impl RefUnwindSafe for AttachmentErrorKind
impl Send for AttachmentErrorKind
impl Sync for AttachmentErrorKind
impl Unpin for AttachmentErrorKind
impl UnsafeUnpin for AttachmentErrorKind
impl UnwindSafe for AttachmentErrorKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.