[−][src]Struct casper_engine_test_support::SessionBuilder
Builder for a Session
.
Implementations
impl SessionBuilder
[src]
pub fn new(session_code: Code, session_args: RuntimeArgs) -> Self
[src]
Constructs a new SessionBuilder
containing a deploy with the provided session code and
session args, and with default values for the account address, payment code args, gas price,
authorization keys and protocol version.
pub fn with_address(self, address: AccountHash) -> Self
[src]
Returns self
with the provided account address set.
pub fn with_payment_code(self, code: Code, args: RuntimeArgs) -> Self
[src]
Returns self
with the provided payment code and args set.
pub fn with_block_time(self, block_time: u64) -> Self
[src]
Returns self
with the provided block time set.
pub fn with_gas_price(self, price: u64) -> Self
[src]
Returns self
with the provided gas price set.
pub fn with_authorization_keys(self, keys: &[AccountHash]) -> Self
[src]
Returns self
with the provided authorization keys set.
pub fn with_protocol_version(self, version: ProtocolVersion) -> Self
[src]
Returns self
with the provided protocol version set.
pub fn without_expect_success(self) -> Self
[src]
Will disable the expect_success call during Text_Context.run() method when expected to fail.
pub fn with_check_transfer_success(
self,
session_transfer_info: SessionTransferInfo
) -> Self
[src]
self,
session_transfer_info: SessionTransferInfo
) -> Self
Provide SessionTransferInfo to validate transfer including gas used from source account
pub fn without_commit(self) -> Self
[src]
Do not perform commit within the ['TestContext'].['run'] method.
pub fn build(self) -> Session
[src]
Builds the Session
.
Auto Trait Implementations
impl !RefUnwindSafe for SessionBuilder
impl Send for SessionBuilder
impl Sync for SessionBuilder
impl Unpin for SessionBuilder
impl !UnwindSafe for SessionBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> FromBits<T> for T
pub fn from_bits(other: T) -> T
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,