pub struct BlockingOptions<'token> {
pub progress: Option<Sender<Progress>>,
pub cancel: Option<&'token CancelToken>,
}Expand description
Optional progress channel and cancellation for the blocking calls.
Fields§
§progress: Option<Sender<Progress>>Receives progress reports, sent from a library thread while the call blocks.
cancel: Option<&'token CancelToken>Must stay alive until the call returns, which the borrow ensures.
Trait Implementations§
Source§impl<'token> Clone for BlockingOptions<'token>
impl<'token> Clone for BlockingOptions<'token>
Source§impl<'token> Debug for BlockingOptions<'token>
impl<'token> Debug for BlockingOptions<'token>
Auto Trait Implementations§
impl<'token> !Send for BlockingOptions<'token>
impl<'token> !Sync for BlockingOptions<'token>
impl<'token> Freeze for BlockingOptions<'token>
impl<'token> RefUnwindSafe for BlockingOptions<'token>
impl<'token> Unpin for BlockingOptions<'token>
impl<'token> UnsafeUnpin for BlockingOptions<'token>
impl<'token> UnwindSafe for BlockingOptions<'token>
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