Enum rustube::OnProgressType [−][src]
This is supported on crate feature
callback
only.Type to process on_progress
Variants
Box containing a closure to execute on progress
Box containing a async closure to execute on progress
Channel(Sender<CallbackArguments>, bool)
Channel to send a message to on progress, bool indicates whether or not to cancel on a closed channel
Box containing a closure to execute on progress Will get executed for every MB downloaded
Box containing a async closure to execute on progress Will get executed for every MB downloaded
SlowChannel(Sender<CallbackArguments>, bool)
Channel to send a message to on progress, bool indicates whether or not to cancel on a closed channel Will get executed for every MB downloaded
Trait Implementations
impl Debug for OnProgressType
[src]
This is supported on crate feature
stream
only.impl Default for OnProgressType
[src]
This is supported on crate feature
stream
only.Auto Trait Implementations
impl !RefUnwindSafe for OnProgressType
impl !Send for OnProgressType
impl !Sync for OnProgressType
impl Unpin for OnProgressType
impl !UnwindSafe for OnProgressType
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,