Skip to main content

OpaqueProject

Trait OpaqueProject 

Source
pub trait OpaqueProject<Target> {
    type Output;

    // Required method
    fn project(self) -> Self::Output;
}
Expand description

Projects an opaque wrapper receiver into the corresponding inner receiver.

Generated forwarding impls use this trait instead of hard-coding whether a receiver should call as_inner, as_inner_mut, or into_inner.

Required Associated Types§

Source

type Output

The projected receiver type passed to the inner implementation.

Required Methods§

Source

fn project(self) -> Self::Output

Projects self into the receiver expected by the inner implementation.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§