Struct LoopState
struct LoopState<'a> {
client: &'a mut Client<JournaledSession>,
cmd_rx: &'a mut Receiver<Command>,
msg_tx: &'a Sender<Message>,
journal_writer: &'a mut Option<Writer>,
queued_commands: &'a mut VecDeque<Command>,
}Expand description
Mutable state that persists across reconnection attempts.
Fields§
§client: &'a mut Client<JournaledSession>§cmd_rx: &'a mut Receiver<Command>§msg_tx: &'a Sender<Message>§journal_writer: &'a mut Option<Writer>§queued_commands: &'a mut VecDeque<Command>Auto Trait Implementations§
impl<'a> Freeze for LoopState<'a>
impl<'a> !RefUnwindSafe for LoopState<'a>
impl<'a> Send for LoopState<'a>
impl<'a> Sync for LoopState<'a>
impl<'a> Unpin for LoopState<'a>
impl<'a> !UnwindSafe for LoopState<'a>
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