pub struct ContextSettings {
pub sending_fee: u64,
pub scheduled_sending_fee: u64,
pub waiting_fee: u64,
pub waking_fee: u64,
pub reservation_fee: u64,
pub outgoing_limit: u32,
pub outgoing_bytes_limit: u32,
}
Expand description
Context settings.
Fields§
§sending_fee: u64
Fee for sending message.
scheduled_sending_fee: u64
Fee for sending scheduled message.
waiting_fee: u64
Fee for calling wait.
waking_fee: u64
Fee for waking messages.
reservation_fee: u64
Fee for creating reservation.
outgoing_limit: u32
Limit of outgoing messages, that program can send in current message processing.
outgoing_bytes_limit: u32
Limit of bytes in outgoing messages during current execution.
Implementations§
Source§impl ContextSettings
impl ContextSettings
Sourcepub fn with_outgoing_limits(
outgoing_limit: u32,
outgoing_bytes_limit: u32,
) -> Self
pub fn with_outgoing_limits( outgoing_limit: u32, outgoing_bytes_limit: u32, ) -> Self
Returns default settings with specified outgoing messages limits.
Trait Implementations§
Source§impl Clone for ContextSettings
impl Clone for ContextSettings
Source§fn clone(&self) -> ContextSettings
fn clone(&self) -> ContextSettings
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ContextSettings
impl Debug for ContextSettings
Source§impl Default for ContextSettings
impl Default for ContextSettings
Source§fn default() -> ContextSettings
fn default() -> ContextSettings
Returns the “default value” for a type. Read more
impl Copy for ContextSettings
Auto Trait Implementations§
impl Freeze for ContextSettings
impl RefUnwindSafe for ContextSettings
impl Send for ContextSettings
impl Sync for ContextSettings
impl Unpin for ContextSettings
impl UnwindSafe for ContextSettings
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