pub trait OwnedRetriever<U: Send + 'static> {
// Required methods
fn view<T, F: FnOnce(&U) -> T>(
&self,
f: F,
) -> Result<T, PoisonedThreadError>;
fn unwrap(self) -> Result<U, PoisonedThreadError>;
}
Required Methods§
fn view<T, F: FnOnce(&U) -> T>(&self, f: F) -> Result<T, PoisonedThreadError>
fn unwrap(self) -> Result<U, PoisonedThreadError>
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.