pub struct EscrowScenarioBuilder { /* private fields */ }Implementations§
Source§impl EscrowScenarioBuilder
impl EscrowScenarioBuilder
pub fn with_account(self, account: AccountID) -> Self
pub fn with_amount(self, amount: Amount) -> Self
pub fn with_update_data_returns(self, result: Result<(), Error>) -> Self
Sourcepub fn build(self) -> MockHostBindings
pub fn build(self) -> MockHostBindings
Builds a mock with this scenario’s expectations, falling back to
apply_default_expectations for anything the scenario doesn’t configure.
Sourcepub fn build_onto(self, mock: MockHostBindings) -> MockHostBindings
pub fn build_onto(self, mock: MockHostBindings) -> MockHostBindings
Layers this scenario’s expectations onto an existing mock. mockall matches
expectations in the order they were registered, so anything already set on mock
takes precedence over what the scenario adds here.
Trait Implementations§
Source§impl Default for EscrowScenarioBuilder
impl Default for EscrowScenarioBuilder
Source§fn default() -> EscrowScenarioBuilder
fn default() -> EscrowScenarioBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EscrowScenarioBuilder
impl RefUnwindSafe for EscrowScenarioBuilder
impl Send for EscrowScenarioBuilder
impl Sync for EscrowScenarioBuilder
impl Unpin for EscrowScenarioBuilder
impl UnsafeUnpin for EscrowScenarioBuilder
impl UnwindSafe for EscrowScenarioBuilder
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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