pub struct Dispatch {
pub id: Uuid,
pub method: u64,
pub body: Bytes,
pub wait_for_response: bool,
}
Expand description
Dispatch a message to appropriate handler
if id.is_nil() && !wait_for_response
then the response is returned as soon as local
link sent the message over the wire
Otherwise sets up a correlation counter and waits for response with a timeout(to prevent DOS attacks on correlation cache)
Fields§
§id: Uuid
§method: u64
§body: Bytes
§wait_for_response: bool
Trait Implementations§
Source§impl Handler<Dispatch> for ProcessRegistry
impl Handler<Dispatch> for ProcessRegistry
Auto Trait Implementations§
impl !Freeze for Dispatch
impl RefUnwindSafe for Dispatch
impl Send for Dispatch
impl Sync for Dispatch
impl Unpin for Dispatch
impl UnwindSafe for Dispatch
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