pub enum DownloadResult<T: DeserializeOwned + Debug> {
Downloaded,
Response(T),
}
Expand description
Result of a method that can (but doesn’t always) download data.
Variants§
Downloaded
Downloaded data has been written to the supplied Writer.
Response(T)
A structured response has been returned.
Trait Implementations§
source§impl<T: Debug + DeserializeOwned + Debug> Debug for DownloadResult<T>
impl<T: Debug + DeserializeOwned + Debug> Debug for DownloadResult<T>
source§impl<T: PartialEq + DeserializeOwned + Debug> PartialEq<DownloadResult<T>> for DownloadResult<T>
impl<T: PartialEq + DeserializeOwned + Debug> PartialEq<DownloadResult<T>> for DownloadResult<T>
source§fn eq(&self, other: &DownloadResult<T>) -> bool
fn eq(&self, other: &DownloadResult<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.