pub enum AppearanceError {
EmptyName,
NameTooLong,
NotNormalized,
HiddenCharacter(u32),
AvatarNotHash,
AvatarTooLarge,
AvatarNotImage,
AvatarMissing,
AvatarMismatch,
BadService,
BadAccount,
BadLinked,
}Expand description
Why an appearance was refused.
Variants§
EmptyName
Nothing is left after trimming.
NameTooLong
Longer than MAX_NAME_CHARS.
NotNormalized
Not in the form Appearance::new makes.
HiddenCharacter(u32)
A character that hides or reorders text, by code point.
AvatarNotHash
The avatar is no content hash.
AvatarTooLarge
Larger than MAX_AVATAR_BYTES.
AvatarNotImage
Not a raster image.
AvatarMissing
Not in the workspace’s content store.
AvatarMismatch
The bytes do not hash to the name.
BadService
BadAccount
The account is malformed.
BadLinked
The linked member is not named by a root key.
Trait Implementations§
Source§impl Clone for AppearanceError
impl Clone for AppearanceError
Source§impl Debug for AppearanceError
impl Debug for AppearanceError
Source§impl Display for AppearanceError
impl Display for AppearanceError
impl Eq for AppearanceError
Source§impl Error for AppearanceError
impl Error for AppearanceError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for AppearanceError
impl PartialEq for AppearanceError
impl StructuralPartialEq for AppearanceError
Auto Trait Implementations§
impl Forget for AppearanceError
impl Freeze for AppearanceError
impl Move for AppearanceError
impl RefUnwindSafe for AppearanceError
impl Send for AppearanceError
impl Sync for AppearanceError
impl Unpin for AppearanceError
impl UnsafeUnpin for AppearanceError
impl UnwindSafe for AppearanceError
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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