[][src]Struct rr_mux::mock::MockRequest

pub struct MockRequest<Addr, Req, Resp, Ctx, E> { /* fields omitted */ }

MockRequest is a mocked request expectation with a provided response

Methods

impl<Addr, Req, Resp, Ctx, E> MockRequest<Addr, Req, Resp, Ctx, E>[src]

pub fn new(to: Addr, req: Req, resp: Result<(Resp, Ctx), E>) -> Self[src]

Create a new mock request. You probably want to use MockTransaction::request instead of constructing this directly

pub fn with_context(self, ctx: Ctx) -> Self[src]

Trait Implementations

impl<Addr: Clone, Req: Clone, Resp: Clone, Ctx: Clone, E: Clone> Clone for MockRequest<Addr, Req, Resp, Ctx, E>[src]

impl<Addr: Debug, Req: Debug, Resp: Debug, Ctx: Debug, E: Debug> Debug for MockRequest<Addr, Req, Resp, Ctx, E>[src]

impl<Addr: PartialEq, Req: PartialEq, Resp: PartialEq, Ctx: PartialEq, E: PartialEq> PartialEq<MockRequest<Addr, Req, Resp, Ctx, E>> for MockRequest<Addr, Req, Resp, Ctx, E>[src]

impl<Addr, Req, Resp, Ctx, E> StructuralPartialEq for MockRequest<Addr, Req, Resp, Ctx, E>[src]

Auto Trait Implementations

impl<Addr, Req, Resp, Ctx, E> RefUnwindSafe for MockRequest<Addr, Req, Resp, Ctx, E> where
    Addr: RefUnwindSafe,
    Ctx: RefUnwindSafe,
    E: RefUnwindSafe,
    Req: RefUnwindSafe,
    Resp: RefUnwindSafe

impl<Addr, Req, Resp, Ctx, E> Send for MockRequest<Addr, Req, Resp, Ctx, E> where
    Addr: Send,
    Ctx: Send,
    E: Send,
    Req: Send,
    Resp: Send

impl<Addr, Req, Resp, Ctx, E> Sync for MockRequest<Addr, Req, Resp, Ctx, E> where
    Addr: Sync,
    Ctx: Sync,
    E: Sync,
    Req: Sync,
    Resp: Sync

impl<Addr, Req, Resp, Ctx, E> Unpin for MockRequest<Addr, Req, Resp, Ctx, E> where
    Addr: Unpin,
    Ctx: Unpin,
    E: Unpin,
    Req: Unpin,
    Resp: Unpin

impl<Addr, Req, Resp, Ctx, E> UnwindSafe for MockRequest<Addr, Req, Resp, Ctx, E> where
    Addr: UnwindSafe,
    Ctx: UnwindSafe,
    E: UnwindSafe,
    Req: UnwindSafe,
    Resp: 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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.