pub struct GstdParams {
pub gas_limit: Option<GasUnit>,
pub value: Option<ValueUnit>,
pub wait_up_to: Option<BlockCount>,
pub reply_deposit: Option<GasUnit>,
pub reply_hook: Option<Box<dyn FnOnce() + Send + 'static>>,
pub redirect_on_exit: bool,
}Fields§
§gas_limit: Option<GasUnit>§value: Option<ValueUnit>§wait_up_to: Option<BlockCount>§reply_deposit: Option<GasUnit>§reply_hook: Option<Box<dyn FnOnce() + Send + 'static>>§redirect_on_exit: boolImplementations§
Source§impl GstdParams
impl GstdParams
pub fn with_gas_limit(self, gas_limit: GasUnit) -> Self
pub fn with_value(self, value: ValueUnit) -> Self
pub fn with_wait_up_to(self, wait_up_to: BlockCount) -> Self
pub fn with_reply_deposit(self, reply_deposit: GasUnit) -> Self
Source§impl GstdParams
impl GstdParams
pub fn with_redirect_on_exit(self, redirect_on_exit: bool) -> Self
pub fn with_reply_hook<F: FnOnce() + Send + 'static>(self, f: F) -> Self
Trait Implementations§
Source§impl Default for GstdParams
impl Default for GstdParams
Source§fn default() -> GstdParams
fn default() -> GstdParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GstdParams
impl !RefUnwindSafe for GstdParams
impl Send for GstdParams
impl !Sync for GstdParams
impl Unpin for GstdParams
impl !UnwindSafe for GstdParams
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