pub trait FromAlreadyApplied {
// Required method
fn from_already_applied() -> Self;
}Expand description
Internal trait used by the idempotency_guard macro.
This internal-only trait is implemented on idempotency_guard for it to create
both Idempotent<T> and Result<Idempotent<T>, E> return types for returning AlreadyApplied variant.
Required Methods§
Sourcefn from_already_applied() -> Self
fn from_already_applied() -> Self
Creates a value representing an already applied idempotent operation.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl<T, E> FromAlreadyApplied for Result<Idempotent<T>, E>
impl<T, E> FromAlreadyApplied for Result<Idempotent<T>, E>
Source§fn from_already_applied() -> Self
fn from_already_applied() -> Self
to handle Result<Idempotent<T>, E> return type