[−][src]Struct muta_protocol::types::ServiceContext
Methods
impl ServiceContext[src]
pub fn new(params: ServiceContextParams) -> Self[src]
pub fn with_context(
context: &ServiceContext,
service_name: String,
service_method: String,
service_payload: String
) -> Self[src]
context: &ServiceContext,
service_name: String,
service_method: String,
service_payload: String
) -> Self
pub fn get_events(&self) -> Vec<Event>[src]
pub fn sub_cycles(&self, cycles: u64) -> ProtocolResult<()>[src]
pub fn get_cycles_price(&self) -> u64[src]
pub fn get_cycles_limit(&self) -> u64[src]
pub fn get_cycles_used(&self) -> u64[src]
pub fn get_caller(&self) -> Address[src]
pub fn get_current_epoch_id(&self) -> u64[src]
pub fn get_service_name(&self) -> &str[src]
pub fn get_service_method(&self) -> &str[src]
pub fn get_payload(&self) -> &str[src]
pub fn get_timestamp(&self) -> u64[src]
pub fn emit_event(&self, message: String) -> ProtocolResult<()>[src]
Trait Implementations
impl Clone for ServiceContext[src]
fn clone(&self) -> ServiceContext[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for ServiceContext[src]
impl PartialEq<ServiceContext> for ServiceContext[src]
fn eq(&self, other: &ServiceContext) -> bool[src]
fn ne(&self, other: &ServiceContext) -> bool[src]
impl StructuralPartialEq for ServiceContext[src]
Auto Trait Implementations
impl !RefUnwindSafe for ServiceContext
impl !Send for ServiceContext
impl !Sync for ServiceContext
impl Unpin for ServiceContext
impl !UnwindSafe for ServiceContext
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> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
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>,