Struct unimock::mock::embedded_hal_1::delay::DelayNsMock::delay_ms
source · pub struct delay_ms;
Available on crate feature
mock-embedded-hal-1
only.Expand description
MockFn for DelayNs::delay_ms(ms: u32)
.
Trait Implementations§
source§impl MockFn for delay_ms
impl MockFn for delay_ms
§type OutputKind = Owning<()>
type OutputKind = Owning<()>
A type that describes how the mocked function responds. Read more
§type AnswerFn = dyn for<'__u> Fn(&'__u mut Unimock, u32) + Sync + Send
type AnswerFn = dyn for<'__u> Fn(&'__u mut Unimock, u32) + Sync + Send
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(ms: &Self::Inputs<'_>) -> Box<[Option<String>]>
fn debug_inputs(ms: &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 delay_ms
impl RefUnwindSafe for delay_ms
impl Send for delay_ms
impl Sync for delay_ms
impl Unpin for delay_ms
impl UnwindSafe for delay_ms
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