pub enum LemmyError {
Login(LemmyErrorType),
Community(LemmyErrorType),
Language(LemmyErrorType),
Post(LemmyErrorType),
LoginReturnedNoJwt,
LanguageNotFound {
language_code: String,
available_languages: Vec<String>,
},
}Expand description
Errors that can occur when posting to Lemmy.
Variants§
Login(LemmyErrorType)
Error while logging into Lemmy.
Community(LemmyErrorType)
Error while finding a community in Lemmy.
Language(LemmyErrorType)
Error while finding a language in Lemmy.
Post(LemmyErrorType)
Error while creating a post in Lemmy.
LoginReturnedNoJwt
Error indicating that login failed because no JWT was returned.
LanguageNotFound
Error indicating that the specified language was not found.
Trait Implementations§
Source§impl Debug for LemmyError
impl Debug for LemmyError
Source§impl Display for LemmyError
impl Display for LemmyError
Source§impl Error for LemmyError
impl Error for LemmyError
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 From<LemmyError> for Error
impl From<LemmyError> for Error
Source§fn from(source: LemmyError) -> Self
fn from(source: LemmyError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LemmyError
impl RefUnwindSafe for LemmyError
impl Send for LemmyError
impl Sync for LemmyError
impl Unpin for LemmyError
impl UnsafeUnpin for LemmyError
impl UnwindSafe for LemmyError
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