Struct unimock::mock::futures_0_3::io::AsyncWriteMock::poll_flush
source · pub struct poll_flush;
Available on crate feature
mock-futures-io-0-3
only.Expand description
Trait Implementations§
source§impl MockFn for poll_flush
impl MockFn for poll_flush
§type Inputs<'__i> = Impossible
type Inputs<'__i> = Impossible
The inputs to a mockable function. Read more
§type OutputKind = Owning<Poll<Result<(), Error>>>
type OutputKind = Owning<Poll<Result<(), Error>>>
A type that describes how the mocked function responds. Read more
§type AnswerFn = dyn for<'__u> Fn(&'__u mut Unimock, &mut Context<'_>) -> Poll<Result<(), Error>> + Send + Sync
type AnswerFn = dyn for<'__u> Fn(&'__u mut Unimock, &mut Context<'_>) -> Poll<Result<(), Error>> + Send + Sync
The function type used for function application on a call pattern.
source§fn info() -> MockFnInfo
fn info() -> MockFnInfo
Static information about the mocked method
source§fn debug_inputs(cx: &Self::Inputs<'_>) -> Box<[Option<String>]>
fn debug_inputs(cx: &Self::Inputs<'_>) -> Box<[Option<String>]>
Compute some debug representation of the inputs.
source§fn stub<E>(self, each_fn: E) -> Each<Self>
fn stub<E>(self, each_fn: E) -> Each<Self>
Create a stubbing clause by grouping calls. Read more
source§fn some_call(
self,
matching_fn: &dyn Fn(&mut Matching<Self>)
) -> DefineResponse<'static, Self, InAnyOrder>
fn some_call( self, matching_fn: &dyn Fn(&mut Matching<Self>) ) -> DefineResponse<'static, Self, InAnyOrder>
source§fn each_call(
self,
matching_fn: &dyn Fn(&mut Matching<Self>)
) -> DefineMultipleResponses<'static, Self, InAnyOrder>
fn each_call( self, matching_fn: &dyn Fn(&mut Matching<Self>) ) -> DefineMultipleResponses<'static, Self, InAnyOrder>
Auto Trait Implementations§
impl Freeze for poll_flush
impl RefUnwindSafe for poll_flush
impl Send for poll_flush
impl Sync for poll_flush
impl Unpin for poll_flush
impl UnwindSafe for poll_flush
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more