pub struct DownloadResult<E: Executor, PullError, PushError> {
pub event_chain: AsyncReceiver<Event<PullError, PushError>>,
/* private fields */
}
Fields§
§event_chain: AsyncReceiver<Event<PullError, PushError>>
Implementations§
Source§impl<E: Executor, PullError, PushError> DownloadResult<E, PullError, PushError>
impl<E: Executor, PullError, PushError> DownloadResult<E, PullError, PushError>
pub fn new( event_chain: AsyncReceiver<Event<PullError, PushError>>, handle: JoinHandle<()>, abort_handles: &[AbortHandle], task_list: Option<Weak<TaskList<E>>>, ) -> Self
pub fn abort(&self)
pub fn set_threads(&self, threads: NonZeroUsize, min_chunk_size: NonZeroU64)
Trait Implementations§
Source§impl<E: Clone + Executor, PullError: Clone, PushError: Clone> Clone for DownloadResult<E, PullError, PushError>
impl<E: Clone + Executor, PullError: Clone, PushError: Clone> Clone for DownloadResult<E, PullError, PushError>
Source§fn clone(&self) -> DownloadResult<E, PullError, PushError>
fn clone(&self) -> DownloadResult<E, PullError, PushError>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<E, PullError, PushError> Freeze for DownloadResult<E, PullError, PushError>
impl<E, PullError, PushError> !RefUnwindSafe for DownloadResult<E, PullError, PushError>
impl<E, PullError, PushError> Send for DownloadResult<E, PullError, PushError>
impl<E, PullError, PushError> Sync for DownloadResult<E, PullError, PushError>
impl<E, PullError, PushError> Unpin for DownloadResult<E, PullError, PushError>
impl<E, PullError, PushError> !UnwindSafe for DownloadResult<E, PullError, PushError>
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