pub struct ReadCancellation(/* private fields */);Expand description
A single-use cancellation handle for reads and explicit validation. Clones cancel the same call. Cancellation stops at the next engine checkpoint, not within a parser invocation.
Implementations§
Source§impl ReadCancellation
impl ReadCancellation
pub fn cancel(&self)
pub fn is_cancelled(&self) -> bool
Trait Implementations§
Source§impl Clone for ReadCancellation
impl Clone for ReadCancellation
Source§impl Debug for ReadCancellation
impl Debug for ReadCancellation
Auto Trait Implementations§
impl Freeze for ReadCancellation
impl RefUnwindSafe for ReadCancellation
impl Send for ReadCancellation
impl Sync for ReadCancellation
impl Unpin for ReadCancellation
impl UnsafeUnpin for ReadCancellation
impl UnwindSafe for ReadCancellation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more