pub struct ParseBudget {
pub cancelled: Arc<AtomicBool>,
pub deadline: Instant,
}Expand description
Cooperative parser cancellation and a monotonic execution deadline.
Fields§
§cancelled: Arc<AtomicBool>§deadline: InstantImplementations§
Source§impl ParseBudget
impl ParseBudget
pub fn interrupted(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParseBudget
impl RefUnwindSafe for ParseBudget
impl Send for ParseBudget
impl Sync for ParseBudget
impl Unpin for ParseBudget
impl UnsafeUnpin for ParseBudget
impl UnwindSafe for ParseBudget
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