[−][src]Struct rr_mux::mock::MockResponseBuilder
Builder for MockResponse
.
Methods
impl<Addr: Clone, Resp: Clone, Ctx: Clone, E: Clone> MockResponseBuilder<Addr, Resp, Ctx, E>
[src]
pub fn to(&mut self, value: Addr) -> &mut Self
[src]
pub fn resp(&mut self, value: Resp) -> &mut Self
[src]
pub fn err(&mut self, value: Option<E>) -> &mut Self
[src]
pub fn ctx(&mut self, value: Option<Ctx>) -> &mut Self
[src]
pub fn build(&self) -> Result<MockResponse<Addr, Resp, Ctx, E>, String>
[src]
Trait Implementations
impl<Addr: Clone, Resp: Clone, Ctx: Clone, E: Clone> Clone for MockResponseBuilder<Addr, Resp, Ctx, E>
[src]
fn clone(&self) -> MockResponseBuilder<Addr, Resp, Ctx, E>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<Addr: Default, Resp: Default, Ctx: Default, E: Default> Default for MockResponseBuilder<Addr, Resp, Ctx, E>
[src]
fn default() -> MockResponseBuilder<Addr, Resp, Ctx, E>
[src]
Auto Trait Implementations
impl<Addr, Resp, Ctx, E> RefUnwindSafe for MockResponseBuilder<Addr, Resp, Ctx, E> where
Addr: RefUnwindSafe,
Ctx: RefUnwindSafe,
E: RefUnwindSafe,
Resp: RefUnwindSafe,
Addr: RefUnwindSafe,
Ctx: RefUnwindSafe,
E: RefUnwindSafe,
Resp: RefUnwindSafe,
impl<Addr, Resp, Ctx, E> Send for MockResponseBuilder<Addr, Resp, Ctx, E> where
Addr: Send,
Ctx: Send,
E: Send,
Resp: Send,
Addr: Send,
Ctx: Send,
E: Send,
Resp: Send,
impl<Addr, Resp, Ctx, E> Sync for MockResponseBuilder<Addr, Resp, Ctx, E> where
Addr: Sync,
Ctx: Sync,
E: Sync,
Resp: Sync,
Addr: Sync,
Ctx: Sync,
E: Sync,
Resp: Sync,
impl<Addr, Resp, Ctx, E> Unpin for MockResponseBuilder<Addr, Resp, Ctx, E> where
Addr: Unpin,
Ctx: Unpin,
E: Unpin,
Resp: Unpin,
Addr: Unpin,
Ctx: Unpin,
E: Unpin,
Resp: Unpin,
impl<Addr, Resp, Ctx, E> UnwindSafe for MockResponseBuilder<Addr, Resp, Ctx, E> where
Addr: UnwindSafe,
Ctx: UnwindSafe,
E: UnwindSafe,
Resp: UnwindSafe,
Addr: UnwindSafe,
Ctx: UnwindSafe,
E: 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>,