pub enum XtreamError {
Auth(String),
SessionExpired(String),
RateLimited {
retry_after_secs: u64,
},
Network(String),
Timeout(String),
UnexpectedResponse(String),
NotFound(String),
InvalidUrl(String),
}Expand description
Errors that can occur when interacting with an Xtream Codes API server.
Variants§
Auth(String)
Authentication failed (invalid credentials, disabled account).
SessionExpired(String)
Account expired or session invalid.
RateLimited
Server returned 429 Too Many Requests.
Network(String)
HTTP or network-level failure.
Timeout(String)
Request timed out.
UnexpectedResponse(String)
Server returned JSON we could not deserialize.
NotFound(String)
The requested resource was not found (empty info array, null name, etc.).
InvalidUrl(String)
Invalid URL or configuration.
Trait Implementations§
Source§impl Debug for XtreamError
impl Debug for XtreamError
Source§impl Display for XtreamError
impl Display for XtreamError
Source§impl Error for XtreamError
impl Error for XtreamError
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()
Source§impl From<Error> for XtreamError
impl From<Error> for XtreamError
Source§impl From<Error> for XtreamError
impl From<Error> for XtreamError
Source§impl From<ParseError> for XtreamError
impl From<ParseError> for XtreamError
Source§fn from(err: ParseError) -> Self
fn from(err: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<XtreamError> for IptvError
impl From<XtreamError> for IptvError
Source§fn from(err: XtreamError) -> Self
fn from(err: XtreamError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for XtreamError
impl RefUnwindSafe for XtreamError
impl Send for XtreamError
impl Sync for XtreamError
impl Unpin for XtreamError
impl UnsafeUnpin for XtreamError
impl UnwindSafe for XtreamError
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.