pub struct Wrapper;Expand description
Simplifies calling into the service
Implementations§
Source§impl Wrapper
impl Wrapper
Sourcepub const SERVICE: AccountNumber
pub const SERVICE: AccountNumber
The account this service normally runs on, “subgroups”
Sourcepub fn emit() -> EmitEvent
pub fn emit() -> EmitEvent
Emit events from a service.
This method defaults service to “subgroups”.
Sourcepub fn emit_from(sender: AccountNumber) -> EmitEvent
pub fn emit_from(sender: AccountNumber) -> EmitEvent
Emit events from a service.
Trait Implementations§
impl Copy for Wrapper
Source§impl ServiceWrapper for Wrapper
impl ServiceWrapper for Wrapper
const SERVICE: AccountNumber = Self::SERVICE
type Actions<T: Caller> = Actions<T>
fn with_caller<T: Caller>(caller: T) -> Actions<T>
Source§fn call_to(service: AccountNumber) -> Self::Actions<ServiceCaller>
fn call_to(service: AccountNumber) -> Self::Actions<ServiceCaller>
Call another service. Read more
Source§fn call_from(sender: AccountNumber) -> Self::Actions<ServiceCaller>
fn call_from(sender: AccountNumber) -> Self::Actions<ServiceCaller>
Call another service. Read more
Source§fn call_from_to(
sender: AccountNumber,
service: AccountNumber,
) -> Self::Actions<ServiceCaller>
fn call_from_to( sender: AccountNumber, service: AccountNumber, ) -> Self::Actions<ServiceCaller>
Call another service. Read more
Source§fn call_as(sender: AccountNumber) -> Self::Actions<RunAsCaller>
fn call_as(sender: AccountNumber) -> Self::Actions<RunAsCaller>
Source§fn call_as_extend(
sender: AccountNumber,
allowed_actions: Vec<ServiceMethod>,
) -> Self::Actions<RunAsCaller>
fn call_as_extend( sender: AccountNumber, allowed_actions: Vec<ServiceMethod>, ) -> Self::Actions<RunAsCaller>
Source§fn pack() -> Self::Actions<ActionPacker>
fn pack() -> Self::Actions<ActionPacker>
Pack actions into psibase::Action. Read more
Source§fn pack_to(service: AccountNumber) -> Self::Actions<ActionPacker>
fn pack_to(service: AccountNumber) -> Self::Actions<ActionPacker>
Pack actions into psibase::Action. Read more
Source§fn pack_from(sender: AccountNumber) -> Self::Actions<ActionPacker>
fn pack_from(sender: AccountNumber) -> Self::Actions<ActionPacker>
Pack actions into psibase::Action. Read more
Source§fn pack_from_to(
sender: AccountNumber,
service: AccountNumber,
) -> Self::Actions<ActionPacker>
fn pack_from_to( sender: AccountNumber, service: AccountNumber, ) -> Self::Actions<ActionPacker>
Pack actions into psibase::Action. Read more
Source§impl ToServiceSchema for Wrapper
impl ToServiceSchema for Wrapper
Source§impl WithActionStruct for Wrapper
impl WithActionStruct for Wrapper
fn with_action_struct<P: ProcessActionStruct>( action: &str, process: P, ) -> Option<P::Output>
Auto Trait Implementations§
impl Freeze for Wrapper
impl RefUnwindSafe for Wrapper
impl Send for Wrapper
impl Sync for Wrapper
impl Unpin for Wrapper
impl UnsafeUnpin for Wrapper
impl UnwindSafe for Wrapper
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Reference, Outer, OuterFieldType, Inner> HasPart<Nested<Outer, Inner>> for Reference
impl<Reference, Outer, OuterFieldType, Inner> HasPart<Nested<Outer, Inner>> for Reference
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> Push for Twhere
T: ServiceWrapper,
impl<T> Push for Twhere
T: ServiceWrapper,
Source§fn push<'a>(chain: &'a Chain) -> Self::Actions<ChainPusher<'a>>
fn push<'a>(chain: &'a Chain) -> Self::Actions<ChainPusher<'a>>
push transactions to psibase::Chain. Read more
Source§fn push_to<'a>(
chain: &'a Chain,
service: AccountNumber,
) -> Self::Actions<ChainPusher<'a>>
fn push_to<'a>( chain: &'a Chain, service: AccountNumber, ) -> Self::Actions<ChainPusher<'a>>
push transactions to psibase::Chain. Read more
Source§fn push_from<'a>(
chain: &'a Chain,
sender: AccountNumber,
) -> Self::Actions<ChainPusher<'a>>
fn push_from<'a>( chain: &'a Chain, sender: AccountNumber, ) -> Self::Actions<ChainPusher<'a>>
push transactions to psibase::Chain. Read more
Source§fn push_from_to<'a>(
chain: &'a Chain,
sender: AccountNumber,
service: AccountNumber,
) -> Self::Actions<ChainPusher<'a>>
fn push_from_to<'a>( chain: &'a Chain, sender: AccountNumber, service: AccountNumber, ) -> Self::Actions<ChainPusher<'a>>
push transactions to psibase::Chain. Read more