[−][src]Struct rr_mux::mock::MockRequest
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]
fn clone(&self) -> MockRequest<Addr, Req, Resp, Ctx, E>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
fn eq(&self, other: &MockRequest<Addr, Req, Resp, Ctx, E>) -> bool
[src]
fn ne(&self, other: &MockRequest<Addr, Req, Resp, Ctx, E>) -> bool
[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,
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,
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,
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,
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,
Addr: UnwindSafe,
Ctx: UnwindSafe,
E: UnwindSafe,
Req: UnwindSafe,
Resp: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,