Struct async_fetcher::CompletedState
source · pub struct CompletedState<T: Future<Item = (), Error = FetchError> + Send> { /* private fields */ }
Expand description
The state which signals that fetched file is now at the destination, and provides an optional checksum comparison method.
Implementations
sourceimpl<T: Future<Item = (), Error = FetchError> + Send> CompletedState<T>
impl<T: Future<Item = (), Error = FetchError> + Send> CompletedState<T>
pub fn with_destination_checksum<D: Digest>(
self,
checksum: Arc<str>
) -> impl Future<Item = (), Error = FetchError> + Send
sourcepub fn into_future(self) -> T
pub fn into_future(self) -> T
Convert this state into the future that it owns.
Auto Trait Implementations
impl<T> RefUnwindSafe for CompletedState<T>where
T: RefUnwindSafe,
impl<T> Send for CompletedState<T>
impl<T> Sync for CompletedState<T>where
T: Sync,
impl<T> Unpin for CompletedState<T>where
T: Unpin,
impl<T> UnwindSafe for CompletedState<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more