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