pub struct ActorRef {
pub group: String,
pub key: Option<String>,
pub node: Option<NodeId>,
}Expand description
A reference used to route a message to an actor or actor group.
Fields§
§group: StringLogical group / pool name (e.g. "workers").
key: Option<String>Optional routing key for consistent-hash routing (cluster-routing); when
None, round-robin routing is used.
node: Option<NodeId>Pin to a specific node; when None, the registry chooses placement.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ActorRef
impl<'de> Deserialize<'de> for ActorRef
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ActorRef
impl StructuralPartialEq for ActorRef
Auto Trait Implementations§
impl Freeze for ActorRef
impl RefUnwindSafe for ActorRef
impl Send for ActorRef
impl Sync for ActorRef
impl Unpin for ActorRef
impl UnsafeUnpin for ActorRef
impl UnwindSafe for ActorRef
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