pub struct Keyed<'a> { /* private fields */ }Implementations§
Source§impl<'a> Keyed<'a>
impl<'a> Keyed<'a>
pub fn new(db: &'a Db, work: &'a Work) -> Self
pub async fn replay(&self) -> Result<Option<Reply>>
Sourcepub async fn commit(
&self,
outcome: &mut dyn Outcome,
reach: Reach,
) -> Result<Option<Reply>>
pub async fn commit( &self, outcome: &mut dyn Outcome, reach: Reach, ) -> Result<Option<Reply>>
When another request claimed the key first, its answer is returned and nothing written.
pub async fn record(&self, reply: &Reply) -> Result<()>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Keyed<'a>
impl<'a> !UnwindSafe for Keyed<'a>
impl<'a> Forget for Keyed<'a>
impl<'a> Freeze for Keyed<'a>
impl<'a> Send for Keyed<'a>
impl<'a> Sync for Keyed<'a>
impl<'a> Unpin for Keyed<'a>
impl<'a> UnsafeUnpin for Keyed<'a>
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