pub enum SubtitleSourceState {
Found {
found: u32,
},
QuotaExhausted {
resets_at: Option<i64>,
},
RateLimited {
retry_after_ms: u64,
},
Failed {
message: String,
},
Unknown,
}Expand description
Whether a site answered a search (PX-02).
Variants§
Found
It answered, with found of the results.
QuotaExhausted
Its quota is used up until resets_at (Unix seconds), when it
says.
RateLimited
It asked to wait this long before the next request.
Failed
It could not be reached or refused the request: message says
why, to show.
Unknown
One this build does not know.
Trait Implementations§
Source§impl Clone for SubtitleSourceState
impl Clone for SubtitleSourceState
Source§impl Debug for SubtitleSourceState
impl Debug for SubtitleSourceState
Source§impl<'de> Deserialize<'de> for SubtitleSourceState
impl<'de> Deserialize<'de> for SubtitleSourceState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SubtitleSourceState
Source§impl PartialEq for SubtitleSourceState
impl PartialEq for SubtitleSourceState
Source§impl Serialize for SubtitleSourceState
impl Serialize for SubtitleSourceState
impl StructuralPartialEq for SubtitleSourceState
Auto Trait Implementations§
impl Freeze for SubtitleSourceState
impl RefUnwindSafe for SubtitleSourceState
impl Send for SubtitleSourceState
impl Sync for SubtitleSourceState
impl Unpin for SubtitleSourceState
impl UnsafeUnpin for SubtitleSourceState
impl UnwindSafe for SubtitleSourceState
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