pub struct EagerOpRef<T, E> { /* private fields */ }Expand description
Eager operation reference for local/synchronous operations.
This is a simple wrapper for synchronous operations that complete immediately.
The result is stored and returned on first call to finish(). Subsequent calls
will return a clone of the original error (if the operation failed) or an
AlreadyFinished error (if the operation succeeded).
Implementations§
Trait Implementations§
Source§impl<T, E: FinishableError> OpRef for EagerOpRef<T, E>
impl<T, E: FinishableError> OpRef for EagerOpRef<T, E>
Source§type Stats = ()
type Stats = ()
Runtime statistics collected during the operation (e.g. distances
computed, nodes visited).
Source§fn id(&self) -> &OpId
fn id(&self) -> &OpId
Returns the unique identifier assigned to this operation.
Can represent some sort of ID for the entry in an eager operation
context is up to the implementation (for example a entry tag for a local
index)
Source§fn is_finished(&self) -> bool
fn is_finished(&self) -> bool
Returns
true once the operation has completed (successfully or not). Read moreAuto Trait Implementations§
impl<T, E> Freeze for EagerOpRef<T, E>
impl<T, E> RefUnwindSafe for EagerOpRef<T, E>where
E: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, E> Send for EagerOpRef<T, E>
impl<T, E> Sync for EagerOpRef<T, E>
impl<T, E> Unpin for EagerOpRef<T, E>
impl<T, E> UnsafeUnpin for EagerOpRef<T, E>where
E: UnsafeUnpin,
T: UnsafeUnpin,
impl<T, E> UnwindSafe for EagerOpRef<T, E>where
E: UnwindSafe,
T: UnwindSafe,
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