RemotingAction

Struct RemotingAction 

Source
pub struct RemotingAction<TRemoting: Remoting, TActionIo: ActionIo> { /* private fields */ }

Implementations§

Source§

impl<TRemoting: Remoting, TActionIo: ActionIo> RemotingAction<TRemoting, TActionIo>

Source

pub fn new(remoting: TRemoting, params: TActionIo::Params) -> Self

Trait Implementations§

Source§

impl<TRemoting: Remoting, TActionIo: ActionIo> Action for RemotingAction<TRemoting, TActionIo>

Source§

type Args = <TRemoting as Remoting>::Args

Source§

fn with_gas_limit(self, gas_limit: GasUnit) -> Self

Source§

fn with_value(self, value: ValueUnit) -> Self

Source§

fn with_args<F: FnOnce(Self::Args) -> Self::Args>(self, args_fn: F) -> Self

Source§

fn gas_limit(&self) -> Option<GasUnit>

Source§

fn value(&self) -> ValueUnit

Source§

fn args(&self) -> &Self::Args

Source§

impl<TRemoting, TActionIo> Activation for RemotingAction<TRemoting, TActionIo>
where TRemoting: Remoting, TActionIo: ActionIo<Reply = ()>,

Source§

async fn send<S: AsRef<[u8]>>( self, code_id: CodeId, salt: S, ) -> Result<impl Reply<Output = ActorId>>

Source§

async fn send_recv<S: AsRef<[u8]>>( self, code_id: CodeId, salt: S, ) -> Result<ActorId>
where Self: Sized,

Source§

impl<TRemoting, TActionIo> Call for RemotingAction<TRemoting, TActionIo>
where TRemoting: Remoting, TActionIo: ActionIo,

Source§

type Output = <TActionIo as ActionIo>::Reply

Source§

async fn send( self, target: ActorId, ) -> Result<impl Reply<Output = TActionIo::Reply>>

Source§

async fn send_recv(self, target: ActorId) -> Result<Self::Output>
where Self: Sized,

Source§

impl<TRemoting, TActionIo> Query for RemotingAction<TRemoting, TActionIo>
where TRemoting: Remoting, TActionIo: ActionIo,

Source§

type Output = <TActionIo as ActionIo>::Reply

Source§

async fn recv(self, target: ActorId) -> Result<Self::Output>

Auto Trait Implementations§

§

impl<TRemoting, TActionIo> Freeze for RemotingAction<TRemoting, TActionIo>
where TRemoting: Freeze, <TActionIo as ActionIo>::Params: Freeze, <TRemoting as Remoting>::Args: Freeze,

§

impl<TRemoting, TActionIo> RefUnwindSafe for RemotingAction<TRemoting, TActionIo>
where TRemoting: RefUnwindSafe, <TActionIo as ActionIo>::Params: RefUnwindSafe, <TRemoting as Remoting>::Args: RefUnwindSafe,

§

impl<TRemoting, TActionIo> Send for RemotingAction<TRemoting, TActionIo>
where TRemoting: Send, <TActionIo as ActionIo>::Params: Send, <TRemoting as Remoting>::Args: Send,

§

impl<TRemoting, TActionIo> Sync for RemotingAction<TRemoting, TActionIo>
where TRemoting: Sync, <TActionIo as ActionIo>::Params: Sync, <TRemoting as Remoting>::Args: Sync,

§

impl<TRemoting, TActionIo> Unpin for RemotingAction<TRemoting, TActionIo>
where TRemoting: Unpin, <TActionIo as ActionIo>::Params: Unpin, <TRemoting as Remoting>::Args: Unpin,

§

impl<TRemoting, TActionIo> UnwindSafe for RemotingAction<TRemoting, TActionIo>
where TRemoting: UnwindSafe, <TActionIo as ActionIo>::Params: UnwindSafe, <TRemoting as Remoting>::Args: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithArgs for T
where T: Action<Args = GStdArgs>,

Source§

fn with_redirect_on_exit(self, redirect_on_exit: bool) -> T

Set redirect_on_exit flag to `true``

This flag is used to redirect a message to a new program when the target program exits with an inheritor.

WARNING: When this flag is set, the message future captures the payload and other arguments, potentially resulting in multiple messages being sent. This can lead to increased gas consumption.

This flag is set to `false`` by default.

Source§

fn with_wait_up_to(self, wait_up_to: Option<u32>) -> T

Source§

fn with_reply_deposit(self, reply_deposit: Option<u64>) -> T

Source§

fn with_reply_hook<F>(self, f: F) -> T
where F: FnOnce() + Send + 'static,

Source§

impl<T> JsonSchemaMaybe for T