pub struct MessageSubscriberSender<T: Transport> { /* private fields */ }
Expand description
MessageSubscriberSender sends messages to a MessageSubscriber service The MessageSubscriber interface describes an actor interface that receives messages sent by the Messaging provider client for sending MessageSubscriber messages
Implementations
sourceimpl<T: Transport> MessageSubscriberSender<T>
impl<T: Transport> MessageSubscriberSender<T>
sourcepub fn via(transport: T) -> Self
pub fn via(transport: T) -> Self
Constructs a MessageSubscriberSender with the specified transport
pub fn set_timeout(&self, interval: Duration)
sourceimpl<'send> MessageSubscriberSender<ProviderTransport<'send>>
impl<'send> MessageSubscriberSender<ProviderTransport<'send>>
sourcepub fn for_actor(ld: &'send LinkDefinition) -> Self
pub fn for_actor(ld: &'send LinkDefinition) -> Self
Constructs a Sender using an actor’s LinkDefinition, Uses the provider’s HostBridge for rpc
Trait Implementations
sourceimpl<T: Debug + Transport> Debug for MessageSubscriberSender<T>
impl<T: Debug + Transport> Debug for MessageSubscriberSender<T>
sourceimpl<T: Transport + Sync + Send> MessageSubscriber for MessageSubscriberSender<T>
impl<T: Transport + Sync + Send> MessageSubscriber for MessageSubscriberSender<T>
sourcefn handle_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 Context,
arg: &'life2 SubMessage
) -> Pin<Box<dyn Future<Output = RpcResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn handle_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 Context,
arg: &'life2 SubMessage
) -> Pin<Box<dyn Future<Output = RpcResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
subscription handler
sourcefn contract_id() -> &'static str
fn contract_id() -> &'static str
returns the capability contract id for this interface
Auto Trait Implementations
impl<T> RefUnwindSafe for MessageSubscriberSender<T> where
T: RefUnwindSafe,
impl<T> Send for MessageSubscriberSender<T>
impl<T> Sync for MessageSubscriberSender<T> where
T: Sync,
impl<T> Unpin for MessageSubscriberSender<T> where
T: Unpin,
impl<T> UnwindSafe for MessageSubscriberSender<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more