struct Common {
    matcher: Mutex<Matcher>,
    seq_handle: Option<SeqHandle>,
    times: Times,
}
Expand description

Holds the stuff that is independent of the output type

Fields§

§matcher: Mutex<Matcher>§seq_handle: Option<SeqHandle>§times: Times

Implementations§

Source§

impl Common

Source

fn call(&self, desc: &str)

Source

fn in_sequence(&mut self, __mockall_seq: &mut Sequence) -> &mut Self

Source

fn is_done(&self) -> bool

Source

fn matches<'a>( &self, payment_method_type: &PaymentMethodType, payment_token: &Option<&'a str>, additional_storage_gb: &Option<i32>, country: &Option<&'a str>, postal_code: &Option<&'a str>, license: &Option<PathBuf>, ) -> bool

Source

fn never(&mut self)

Forbid this expectation from ever being called.

Source

fn satisfy_sequence(&self)

Source

fn times<MockallR>(&mut self, __mockall_r: MockallR)
where MockallR: Into<TimesRange>,

Expect this expectation to be called any number of times contained with the given range.

Source

fn with<MockallMatcher0: for<'a> Predicate<PaymentMethodType> + Send + 'static, MockallMatcher1: for<'a> Predicate<Option<&'a str>> + Send + 'static, MockallMatcher2: for<'a> Predicate<Option<i32>> + Send + 'static, MockallMatcher3: for<'a> Predicate<Option<&'a str>> + Send + 'static, MockallMatcher4: for<'a> Predicate<Option<&'a str>> + Send + 'static, MockallMatcher5: for<'a> Predicate<Option<PathBuf>> + Send + 'static>( &mut self, payment_method_type: MockallMatcher0, payment_token: MockallMatcher1, additional_storage_gb: MockallMatcher2, country: MockallMatcher3, postal_code: MockallMatcher4, license: MockallMatcher5, )

Source

fn withf<MockallF>(&mut self, __mockall_f: MockallF)
where MockallF: for<'a> Fn(&PaymentMethodType, &Option<&'a str>, &Option<i32>, &Option<&'a str>, &Option<&'a str>, &Option<PathBuf>) -> bool + Send + 'static,

Source

fn withf_st<MockallF>(&mut self, __mockall_f: MockallF)
where MockallF: for<'a> Fn(&PaymentMethodType, &Option<&'a str>, &Option<i32>, &Option<&'a str>, &Option<&'a str>, &Option<PathBuf>) -> bool + 'static,

Source

fn verify_sequence(&self, desc: &str)

Trait Implementations§

Source§

impl Default for Common

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Drop for Common

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

§

impl !Freeze for Common

§

impl RefUnwindSafe for Common

§

impl Send for Common

§

impl Sync for Common

§

impl Unpin for Common

§

impl UnwindSafe for Common

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Any for T
where T: Any,

§

fn into_any(self: Box<T>) -> Box<dyn Any>

§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

§

fn type_name(&self) -> &'static str

§

impl<T> AnySync for T
where T: Any + Send + Sync,

§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> PolicyExt for T
where T: ?Sized,

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<T> ErasedDestructor for T
where T: 'static,