pub struct PollSubscriberSender<T: Transport> { /* private fields */ }
Expand description
PollSubscriberSender sends messages to a PollSubscriber service The PollSubscriber interface described an actor interface that receives the results from automatic polling of external services/hardware at a specified interval. client for sending PollSubscriber messages
Implementations§
Source§impl<T: Transport> PollSubscriberSender<T>
impl<T: Transport> PollSubscriberSender<T>
Sourcepub fn via(transport: T) -> Self
pub fn via(transport: T) -> Self
Constructs a PollSubscriberSender with the specified transport
pub fn set_timeout(&self, interval: Duration)
Source§impl<'send> PollSubscriberSender<ProviderTransport<'send>>
impl<'send> PollSubscriberSender<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§
Source§impl<T: Clone + Transport> Clone for PollSubscriberSender<T>
impl<T: Clone + Transport> Clone for PollSubscriberSender<T>
Source§fn clone(&self) -> PollSubscriberSender<T>
fn clone(&self) -> PollSubscriberSender<T>
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<T: Transport + Sync + Send> PollSubscriber for PollSubscriberSender<T>
impl<T: Transport + Sync + Send> PollSubscriber for PollSubscriberSender<T>
Source§fn poll_rx<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 Context,
arg: &'life2 PollResult,
) -> Pin<Box<dyn Future<Output = RpcResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn poll_rx<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 Context,
arg: &'life2 PollResult,
) -> Pin<Box<dyn Future<Output = RpcResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Receive results from the latest automatic poll, or simply perform some functionality without any external input
Source§fn contract_id() -> &'static str
fn contract_id() -> &'static str
returns the capability contract id for this interface
Auto Trait Implementations§
impl<T> Freeze for PollSubscriberSender<T>where
T: Freeze,
impl<T> RefUnwindSafe for PollSubscriberSender<T>where
T: RefUnwindSafe,
impl<T> Send for PollSubscriberSender<T>
impl<T> Sync for PollSubscriberSender<T>
impl<T> Unpin for PollSubscriberSender<T>where
T: Unpin,
impl<T> UnwindSafe for PollSubscriberSender<T>where
T: UnwindSafe,
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