pub trait Resolvable<T: Committable>: Sized {
// Required methods
fn try_resolve(self) -> Result<T, Self>;
fn commitment(&self) -> Commitment<T>;
}
Expand description
A reference to a T
which can be resolved into a whole T
.
Required Methods§
Sourcefn try_resolve(self) -> Result<T, Self>
fn try_resolve(self) -> Result<T, Self>
Get the underlying object if it is available without blocking.
Sourcefn commitment(&self) -> Commitment<T>
fn commitment(&self) -> Commitment<T>
Get a commitment to the underlying object.
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.