[][src]Struct rr_mux::mapped::Mapped

pub struct Mapped<BaseReq, BaseResp, MappedReq, MappedResp, ReqId, Target, E, Ctx, Conn, M> { /* fields omitted */ }

Mapped wraps a connector type with a Mapper implementation

Methods

impl<BaseReq, BaseResp, MappedReq, MappedResp, ReqId, Target, E, Ctx, Conn, M> Mapped<BaseReq, BaseResp, MappedReq, MappedResp, ReqId, Target, E, Ctx, Conn, M> where
    ReqId: Eq + Hash + Debug + Clone + Send + 'static,
    Target: Debug + Send + 'static,
    BaseReq: Debug + Send + 'static,
    BaseResp: Debug + Send + 'static,
    MappedReq: Debug + Send + 'static,
    MappedResp: Debug + Send + 'static,
    E: Debug + Send + 'static,
    Ctx: Clone + Send + 'static,
    Conn: Connector<ReqId, Target, BaseReq, BaseResp, E, Ctx> + Send + 'static,
    M: Mapper<Original = Muxed<BaseReq, BaseResp>, Mapped = Muxed<MappedReq, MappedResp>> + Clone + Send + 'static, 
[src]

pub fn new(
    conn: Conn,
    mapper: M
) -> Mapped<BaseReq, BaseResp, MappedReq, MappedResp, ReqId, Target, E, Ctx, Conn, M>
[src]

Trait Implementations

impl<BaseReq, BaseResp, MappedReq, MappedResp, ReqId, Target, E, Ctx, Conn, M> Connector<ReqId, Target, MappedReq, MappedResp, E, Ctx> for Mapped<BaseReq, BaseResp, MappedReq, MappedResp, ReqId, Target, E, Ctx, Conn, M> where
    ReqId: Eq + Hash + Debug + Clone + Send + 'static,
    Target: Debug + Send + 'static,
    BaseReq: Debug + Send + 'static,
    BaseResp: Debug + Send + 'static,
    MappedReq: Debug + Send + 'static,
    MappedResp: Debug + Send + 'static,
    E: Debug + Send + 'static,
    Ctx: Clone + Send + 'static,
    Conn: Connector<ReqId, Target, BaseReq, BaseResp, E, Ctx> + Send + 'static,
    M: Mapper<Original = Muxed<BaseReq, BaseResp>, Mapped = Muxed<MappedReq, MappedResp>> + Clone + Send + 'static, 
[src]

Auto Trait Implementations

impl<BaseReq, BaseResp, MappedReq, MappedResp, ReqId, Target, E, Ctx, Conn, M> RefUnwindSafe for Mapped<BaseReq, BaseResp, MappedReq, MappedResp, ReqId, Target, E, Ctx, Conn, M> where
    BaseReq: RefUnwindSafe,
    BaseResp: RefUnwindSafe,
    Conn: RefUnwindSafe,
    Ctx: RefUnwindSafe,
    E: RefUnwindSafe,
    M: RefUnwindSafe,
    MappedReq: RefUnwindSafe,
    MappedResp: RefUnwindSafe,
    ReqId: RefUnwindSafe,
    Target: RefUnwindSafe

impl<BaseReq, BaseResp, MappedReq, MappedResp, ReqId, Target, E, Ctx, Conn, M> Send for Mapped<BaseReq, BaseResp, MappedReq, MappedResp, ReqId, Target, E, Ctx, Conn, M> where
    BaseReq: Send,
    BaseResp: Send,
    Conn: Send,
    Ctx: Send,
    E: Send,
    M: Send,
    MappedReq: Send,
    MappedResp: Send,
    ReqId: Send,
    Target: Send

impl<BaseReq, BaseResp, MappedReq, MappedResp, ReqId, Target, E, Ctx, Conn, M> Sync for Mapped<BaseReq, BaseResp, MappedReq, MappedResp, ReqId, Target, E, Ctx, Conn, M> where
    BaseReq: Sync,
    BaseResp: Sync,
    Conn: Sync,
    Ctx: Sync,
    E: Sync,
    M: Sync,
    MappedReq: Sync,
    MappedResp: Sync,
    ReqId: Sync,
    Target: Sync

impl<BaseReq, BaseResp, MappedReq, MappedResp, ReqId, Target, E, Ctx, Conn, M> Unpin for Mapped<BaseReq, BaseResp, MappedReq, MappedResp, ReqId, Target, E, Ctx, Conn, M> where
    BaseReq: Unpin,
    BaseResp: Unpin,
    Conn: Unpin,
    Ctx: Unpin,
    E: Unpin,
    M: Unpin,
    MappedReq: Unpin,
    MappedResp: Unpin,
    ReqId: Unpin,
    Target: Unpin

impl<BaseReq, BaseResp, MappedReq, MappedResp, ReqId, Target, E, Ctx, Conn, M> UnwindSafe for Mapped<BaseReq, BaseResp, MappedReq, MappedResp, ReqId, Target, E, Ctx, Conn, M> where
    BaseReq: UnwindSafe,
    BaseResp: UnwindSafe,
    Conn: UnwindSafe,
    Ctx: UnwindSafe,
    E: UnwindSafe,
    M: UnwindSafe,
    MappedReq: UnwindSafe,
    MappedResp: UnwindSafe,
    ReqId: UnwindSafe,
    Target: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.