Enum libretranslate::TranslateError
source · pub enum TranslateError {
HttpError(String),
ParseError(String),
DetectError,
LengthError,
}
Expand description
Errors that could be outputed by translate
.
Variants§
Trait Implementations§
source§impl Clone for TranslateError
impl Clone for TranslateError
source§fn clone(&self) -> TranslateError
fn clone(&self) -> TranslateError
Returns a copy of the value. Read more
1.0.0 · 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 TranslateError
impl Debug for TranslateError
source§impl Display for TranslateError
impl Display for TranslateError
source§impl Error for TranslateError
impl Error for TranslateError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 Hash for TranslateError
impl Hash for TranslateError
source§impl PartialEq<TranslateError> for TranslateError
impl PartialEq<TranslateError> for TranslateError
source§fn eq(&self, other: &TranslateError) -> bool
fn eq(&self, other: &TranslateError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TranslateError
Auto Trait Implementations§
impl RefUnwindSafe for TranslateError
impl Send for TranslateError
impl Sync for TranslateError
impl Unpin for TranslateError
impl UnwindSafe for TranslateError
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