pub struct ReactorReableContext<'a, UserCommand> {
pub reactorid: ReactorID,
pub sock: &'a mut TcpStream,
pub sender: &'a mut MsgSender,
pub reader: &'a mut MsgReader,
pub cmd_sender: &'a CmdSender<UserCommand>,
}
Expand description
ReactorReableContext
is a helper for a reactor to send/recv socket message, or send command.
Fields§
§reactorid: ReactorID
§sock: &'a mut TcpStream
§sender: &'a mut MsgSender
§reader: &'a mut MsgReader
§cmd_sender: &'a CmdSender<UserCommand>
Auto Trait Implementations§
impl<'a, UserCommand> Freeze for ReactorReableContext<'a, UserCommand>
impl<'a, UserCommand> !RefUnwindSafe for ReactorReableContext<'a, UserCommand>
impl<'a, UserCommand> !Send for ReactorReableContext<'a, UserCommand>
impl<'a, UserCommand> !Sync for ReactorReableContext<'a, UserCommand>
impl<'a, UserCommand> Unpin for ReactorReableContext<'a, UserCommand>
impl<'a, UserCommand> !UnwindSafe for ReactorReableContext<'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