pub enum StreckenInfoError {
RequestError(Error),
WebsocketError(Error),
WebSocketNoRevisionError,
JsonError(Error),
InvalidResponse,
ResponseError(String),
ReferenceError,
}
Variants§
RequestError(Error)
A HTTP error occured while requesting
WebsocketError(Error)
A websocket error occured
WebSocketNoRevisionError
The websocket sent no revision
JsonError(Error)
InvalidResponse
This error could happen if the server doesn’t respond with the right response to a request
ResponseError(String)
The server sends an error field which is OK
by default, if it’s this error will be thrown
ReferenceError
There are multiple references in the response, this error will be thrown if they are broken
Trait Implementations§
Source§impl Debug for StreckenInfoError
impl Debug for StreckenInfoError
Source§impl From<Error> for StreckenInfoError
impl From<Error> for StreckenInfoError
Source§impl From<Error> for StreckenInfoError
impl From<Error> for StreckenInfoError
Auto Trait Implementations§
impl !Freeze for StreckenInfoError
impl !RefUnwindSafe for StreckenInfoError
impl Send for StreckenInfoError
impl Sync for StreckenInfoError
impl Unpin for StreckenInfoError
impl !UnwindSafe for StreckenInfoError
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