pub struct StorePolicy(/* private fields */);Expand description
Cloneable RoutingPolicy wrapper used inside the ActorStore
Implementations§
Source§impl StorePolicy
impl StorePolicy
Sourcepub fn new(
policy: Box<dyn RoutingPolicy<DynActorRef, NetMessage> + Send + Sync>,
) -> StorePolicy
pub fn new( policy: Box<dyn RoutingPolicy<DynActorRef, NetMessage> + Send + Sync>, ) -> StorePolicy
Wrap a boxed RoutingPolicy
Trait Implementations§
Source§impl Clone for StorePolicy
impl Clone for StorePolicy
Source§fn clone(&self) -> StorePolicy
fn clone(&self) -> StorePolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StorePolicy
impl Debug for StorePolicy
Source§impl Deref for StorePolicy
impl Deref for StorePolicy
Source§type Target = dyn RoutingPolicy<DynActorRef, NetMessage>
type Target = dyn RoutingPolicy<DynActorRef, NetMessage>
The resulting type after dereferencing.
Source§impl<R> From<R> for StorePolicy
impl<R> From<R> for StorePolicy
Source§fn from(policy: R) -> StorePolicy
fn from(policy: R) -> StorePolicy
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StorePolicy
impl !RefUnwindSafe for StorePolicy
impl Send for StorePolicy
impl Sync for StorePolicy
impl Unpin for StorePolicy
impl UnsafeUnpin for StorePolicy
impl !UnwindSafe for StorePolicy
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