pub enum StalkerError {
PortalNotFound(String),
HandshakeFailed(String),
Auth(String),
SessionExpired,
UnexpectedResponse(String),
Network(Error),
InvalidUrl(ParseError),
Json(Error),
NotAuthenticated,
}Expand description
Errors produced by StalkerClient operations.
Variants§
PortalNotFound(String)
Portal URL could not be discovered at any known path.
HandshakeFailed(String)
Handshake failed — server did not return a valid token.
Auth(String)
Authentication rejected (wrong MAC, blocked account, etc.).
SessionExpired
Session token expired — must re-authenticate.
UnexpectedResponse(String)
Server returned data in an unexpected format.
Network(Error)
HTTP / network transport error.
InvalidUrl(ParseError)
URL parsing failure.
Json(Error)
JSON deserialization failure.
NotAuthenticated
Client has not been authenticated yet.
Trait Implementations§
Source§impl Debug for StalkerError
impl Debug for StalkerError
Source§impl Display for StalkerError
impl Display for StalkerError
Source§impl Error for StalkerError
impl Error for StalkerError
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()
Source§impl From<&StalkerError> for IptvError
impl From<&StalkerError> for IptvError
Source§fn from(e: &StalkerError) -> Self
fn from(e: &StalkerError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for StalkerError
impl From<Error> for StalkerError
Source§impl From<Error> for StalkerError
impl From<Error> for StalkerError
Source§impl From<ParseError> for StalkerError
impl From<ParseError> for StalkerError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StalkerError
impl !RefUnwindSafe for StalkerError
impl Send for StalkerError
impl Sync for StalkerError
impl Unpin for StalkerError
impl UnsafeUnpin for StalkerError
impl !UnwindSafe for StalkerError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.