pub enum RemoteFailure {
Refused(RefusalPolicy),
TlsFailed,
Unreachable,
Busy {
retry_after_ms: u64,
},
RangeUnsupported,
Rejected,
Changed,
Offline,
Empty,
Cancelled,
}Expand description
How a remote read failed.
Variants§
Refused(RefusalPolicy)
MEDIA_REFUSED.
TlsFailed
MEDIA_TLS_FAILED.
Unreachable
MEDIA_UNREACHABLE.
Busy
MEDIA_BUSY, with the server’s delay in milliseconds, at most 60000.
RangeUnsupported
MEDIA_RANGE_UNSUPPORTED.
Rejected
MEDIA_REJECTED.
Changed
MEDIA_CHANGED.
Offline
The probe answered 404 or 410: the source is offline, as a missing file is.
Empty
The probe answered 416 for an empty object, which holds no media.
Cancelled
The request’s cancel was seen.
Implementations§
Trait Implementations§
Source§impl Clone for RemoteFailure
impl Clone for RemoteFailure
impl Copy for RemoteFailure
Source§impl Debug for RemoteFailure
impl Debug for RemoteFailure
impl Eq for RemoteFailure
Source§impl PartialEq for RemoteFailure
impl PartialEq for RemoteFailure
impl StructuralPartialEq for RemoteFailure
Auto Trait Implementations§
impl Forget for RemoteFailure
impl Freeze for RemoteFailure
impl Move for RemoteFailure
impl RefUnwindSafe for RemoteFailure
impl Send for RemoteFailure
impl Sync for RemoteFailure
impl Unpin for RemoteFailure
impl UnsafeUnpin for RemoteFailure
impl UnwindSafe for RemoteFailure
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more