pub struct NeverCancel;Expand description
A cancellation signal for operations that cannot be cancelled.
Trait Implementations§
Source§impl Cancellation for NeverCancel
impl Cancellation for NeverCancel
fn is_cancelled(&self) -> bool
Source§impl Clone for NeverCancel
impl Clone for NeverCancel
impl Copy for NeverCancel
Source§impl Debug for NeverCancel
impl Debug for NeverCancel
Source§impl Default for NeverCancel
impl Default for NeverCancel
Source§impl Progress for NeverCancel
Reports nothing and never cancels.
impl Progress for NeverCancel
Reports nothing and never cancels.
Source§fn format(&mut self, _format: Option<InputFormat>)
fn format(&mut self, _format: Option<InputFormat>)
The input family, given in the options or detected from the leading
signature;
None when the input is empty or unrecognized. Called once,
before the operation refuses the family or reads past the signature.Source§fn input_read(&mut self, _done: u64, _total: u64)
fn input_read(&mut self, _done: u64, _total: u64)
The furthest document byte read so far advanced to
done of the
document’s total bytes. Format engines read their indexes first and
then page payloads in order, so this advances with the operation.Source§fn is_cancelled(&self) -> bool
fn is_cancelled(&self) -> bool
Whether the caller asked to stop; checked between rows, pages and I/O
chunks. A cancelled operation fails with
ErrorKind::Cancelled and
does not undo bytes already written.Auto Trait Implementations§
impl Freeze for NeverCancel
impl RefUnwindSafe for NeverCancel
impl Send for NeverCancel
impl Sync for NeverCancel
impl Unpin for NeverCancel
impl UnsafeUnpin for NeverCancel
impl UnwindSafe for NeverCancel
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