[−][src]Struct casperlabs_engine_test_support::SessionBuilder
Builder for a Session
.
Methods
impl SessionBuilder
[src]
pub fn new(session_code: Code, session_args: impl ArgsParser) -> 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, payment code
args, gas price, authorization keys and protocol version.
pub fn with_address(self, address: Address) -> Self
[src]
Returns self
with the provided account address set.
pub fn with_payment_code(self, code: Code, args: impl ArgsParser) -> Self
[src]
Returns self
with the provided payment code and args 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: &[Address]) -> 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 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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[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.
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.
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>,