pub struct MockExpectation {
pub expected_calls: Option<usize>,
pub description: Option<String>,
}Expand description
Mock 期望配置
Fields§
§expected_calls: Option<usize>期望的调用次数
description: Option<String>描述信息
Implementations§
Trait Implementations§
Source§impl Debug for MockExpectation
impl Debug for MockExpectation
Source§impl Default for MockExpectation
impl Default for MockExpectation
Source§fn default() -> MockExpectation
fn default() -> MockExpectation
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MockExpectation
impl RefUnwindSafe for MockExpectation
impl Send for MockExpectation
impl Sync for MockExpectation
impl Unpin for MockExpectation
impl UnsafeUnpin for MockExpectation
impl UnwindSafe for MockExpectation
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