pub enum LanguageToolError {
Disabled,
NoUrl,
Request(String),
Response(String),
}Expand description
Errors from a LanguageTool check.
Variants§
Disabled
The user hasn’t enabled LanguageTool in the config.
NoUrl
url field is empty.
Request(String)
Network or HTTP error reaching the server.
Response(String)
Couldn’t make sense of the response body.
Trait Implementations§
Source§impl Debug for LanguageToolError
impl Debug for LanguageToolError
Source§impl Display for LanguageToolError
impl Display for LanguageToolError
Source§impl Error for LanguageToolError
impl Error for LanguageToolError
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()
Auto Trait Implementations§
impl Freeze for LanguageToolError
impl RefUnwindSafe for LanguageToolError
impl Send for LanguageToolError
impl Sync for LanguageToolError
impl Unpin for LanguageToolError
impl UnsafeUnpin for LanguageToolError
impl UnwindSafe for LanguageToolError
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