pub struct DispatchContext<'a, UserCommand> {
pub reactorid: ReactorID,
pub sock: &'a mut TcpStream,
pub sender: &'a mut MsgSender,
pub cmd_sender: &'a CmdSender<UserCommand>,
}
Expand description
DispatchContext
contains all info that could be used to dispatch command/message to reactors.
Fields§
§reactorid: ReactorID
§sock: &'a mut TcpStream
§sender: &'a mut MsgSender
§cmd_sender: &'a CmdSender<UserCommand>
Auto Trait Implementations§
impl<'a, UserCommand> Freeze for DispatchContext<'a, UserCommand>
impl<'a, UserCommand> !RefUnwindSafe for DispatchContext<'a, UserCommand>
impl<'a, UserCommand> !Send for DispatchContext<'a, UserCommand>
impl<'a, UserCommand> !Sync for DispatchContext<'a, UserCommand>
impl<'a, UserCommand> Unpin for DispatchContext<'a, UserCommand>
impl<'a, UserCommand> !UnwindSafe for DispatchContext<'a, UserCommand>
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