Skip to main content

GuardWithoutSnapshotClause

Trait GuardWithoutSnapshotClause 

Source
pub trait GuardWithoutSnapshotClause {
    // Required method
    fn reached<R>(&self) -> R;
}
Expand description

Reached by idempotency_guard! when a stream yields Replay::Snapshot but the guard has no snapshot: clause. Only NoSnapshot (and SnapshotRecord<NoSnapshot>) implement it, so on a real snapshot this is a compile error with the message below.

Required Methods§

Source

fn reached<R>(&self) -> R

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§