[][src]Struct herbert::RouterRequest

pub struct RouterRequest {
    pub id: String,
    pub val: Box<dyn Any + Send>,
}

A request to route a message to an actor.

The request consists of the ID of an actor previously spawned through the router and an arbitrary value to be sent to the actor, expressed as a boxed Any + Send trait object.

Fields

id: Stringval: Box<dyn Any + Send>

Methods

impl RouterRequest[src]

pub fn new(id: &str, val: Box<dyn Any + Send>) -> Self[src]

Construct a RouterRequest.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.