Trait brotli::enc::threading::OwnedRetriever

source ·
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§

source

fn view<T, F: FnOnce(&U) -> T>(&self, f: F) -> Result<T, PoisonedThreadError>

source

fn unwrap(self) -> Result<U, PoisonedThreadError>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<U: Send + 'static> OwnedRetriever<U> for Arc<RwLock<U>>

source§

fn view<T, F: FnOnce(&U) -> T>(&self, f: F) -> Result<T, PoisonedThreadError>

source§

fn unwrap(self) -> Result<U, PoisonedThreadError>

Implementors§