pub struct ParseControl { /* private fields */ }Expand description
A clonable cancellation handle for a parse operation.
Existing parsing entry points do not require a control. Callers that need
cancellation can create one, pass a reference to the controlled entry
point, and call ParseControl::cancel from another thread.
Clones share cancellation state. A canceled control remains canceled, so create a fresh control for each independent parse job.
Implementations§
Source§impl ParseControl
impl ParseControl
Trait Implementations§
Source§impl Clone for ParseControl
impl Clone for ParseControl
Source§fn clone(&self) -> ParseControl
fn clone(&self) -> ParseControl
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParseControl
impl Debug for ParseControl
Source§impl Default for ParseControl
impl Default for ParseControl
Source§fn default() -> ParseControl
fn default() -> ParseControl
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ParseControl
impl RefUnwindSafe for ParseControl
impl Send for ParseControl
impl Sync for ParseControl
impl Unpin for ParseControl
impl UnsafeUnpin for ParseControl
impl UnwindSafe for ParseControl
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