pub enum LspErrorKind {
Show 13 variants
Unknown(ErrorCode),
UnknownReqwest,
Building,
Connect,
Timeout,
Decode,
Server,
Rejection,
AtCapacity,
Provision,
Scid,
Command,
NotFound,
}Expand description
All variants of errors that the LSP can return.
Variants§
Unknown(ErrorCode)
Unknown error
UnknownReqwest
Unknown Reqwest client error
Building
Error building the HTTP request
Connect
Error connecting to a remote HTTP service
Timeout
Request timed out
Decode
Error decoding/deserializing the HTTP response body
Server
General server error
Rejection
Client provided a bad request that the server rejected
AtCapacity
Server is at capacity
Provision
Error occurred during provisioning
Scid
Error occurred while fetching new scid
Command
Error
NotFound
Resource not found
Trait Implementations§
Source§impl ApiErrorKind for LspErrorKind
impl ApiErrorKind for LspErrorKind
Source§impl Clone for LspErrorKind
impl Clone for LspErrorKind
Source§fn clone(&self) -> LspErrorKind
fn clone(&self) -> LspErrorKind
Returns a duplicate 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 LspErrorKind
impl Debug for LspErrorKind
Source§impl Default for LspErrorKind
impl Default for LspErrorKind
Source§impl Display for LspErrorKind
impl Display for LspErrorKind
Source§impl From<CommonErrorKind> for LspErrorKind
impl From<CommonErrorKind> for LspErrorKind
Source§fn from(common: CommonErrorKind) -> Self
fn from(common: CommonErrorKind) -> Self
Converts to this type from the input type.
Source§impl From<LspErrorKind> for ErrorCode
impl From<LspErrorKind> for ErrorCode
Source§fn from(val: LspErrorKind) -> ErrorCode
fn from(val: LspErrorKind) -> ErrorCode
Converts to this type from the input type.
Source§impl From<u16> for LspErrorKind
impl From<u16> for LspErrorKind
Source§impl Hash for LspErrorKind
impl Hash for LspErrorKind
Source§impl PartialEq for LspErrorKind
impl PartialEq for LspErrorKind
Source§impl ToHttpStatus for LspErrorKind
impl ToHttpStatus for LspErrorKind
fn to_http_status(&self) -> StatusCode
impl Copy for LspErrorKind
impl Eq for LspErrorKind
impl StructuralPartialEq for LspErrorKind
Auto Trait Implementations§
impl Freeze for LspErrorKind
impl RefUnwindSafe for LspErrorKind
impl Send for LspErrorKind
impl Sync for LspErrorKind
impl Unpin for LspErrorKind
impl UnsafeUnpin for LspErrorKind
impl UnwindSafe for LspErrorKind
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