pub struct ScopedActors { /* private fields */ }Expand description
Wraps an Actors so a module only reaches the kinds it declared in
Module::actor_kinds, the actor equivalent
of the table-ownership rule. When the module has a Clock wired, every
call is also bounded by ACTOR_CALL_TIMEOUT; with no clock there is
nothing to measure the wait with, so the call is made straight through and
the host still serializes it. The harness applies this in Ports::view_for.
Implementations§
Trait Implementations§
Source§impl Actors for ScopedActors
impl Actors for ScopedActors
Source§fn call<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
kind: &'life1 str,
key: &'life2 str,
message: &'life3 [u8],
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, ActorError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn call<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
kind: &'life1 str,
key: &'life2 str,
message: &'life3 [u8],
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, ActorError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Auto Trait Implementations§
impl !RefUnwindSafe for ScopedActors
impl !UnwindSafe for ScopedActors
impl Freeze for ScopedActors
impl Send for ScopedActors
impl Sync for ScopedActors
impl Unpin for ScopedActors
impl UnsafeUnpin for ScopedActors
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