[−][src]Enum screeps_api::error::ErrorKind
Possible error types for library errors.
Variants
Unauthorized access. This is caused by either attempting to access a login-only endpoint without a token, attempting to access a login-only endpoint with an expired token, or providing incorrect login details to the login endpoint.
SerdeJson(Error)
Error parsing a server response. This is most likely caused by the server providing unparsable JSON, but it could also be the server's API response structure has changed and no longer matches the expected data structure.
Url(ParseError)
URL parsing error.
Hyper(Error)
Error connecting to the server, or error parsing a URL provided.
Io(Error)
IO error.
StatusCode(StatusCode)
Error for when the server responds with a non-success HTTP status code.
Api(ApiError)
API Error: when the server responds with a successful HTTP response, but the returned format is not what we expected.
RoomNameParse(RoomNameParseError<'static>)
Error parsing a room name.
Trait Implementations
Auto Trait Implementations
impl Send for ErrorKind
impl Unpin for ErrorKind
impl Sync for ErrorKind
impl !RefUnwindSafe for ErrorKind
impl !UnwindSafe for ErrorKind
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Erased for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,