Trait wrpc_transport::frame::AcceptExt

source ·
pub trait AcceptExt: Accept + Sized {
    // Provided method
    fn map_context<T, F: Fn(Self::Context) -> T>(
        self,
        f: F,
    ) -> AcceptMapContext<Self, F> { ... }
}
Expand description

Extension trait for Accept

Provided Methods§

source

fn map_context<T, F: Fn(Self::Context) -> T>( self, f: F, ) -> AcceptMapContext<Self, F>

Maps Self::Context to a type T using F

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T: Accept> AcceptExt for T