pub struct Receiver {
pub thread: ConnectionThread,
pub is_finished: Arc<Mutex<bool>>,
}Expand description
Describes a receiver thread.
Receiver thread is last of the two threads created on Bot::run
and serves a purpose of receiving websocket messages
from specified asciicker server and patching the world.
Fields§
§thread: ConnectionThreadThread JoinHandle
is_finished: Arc<Mutex<bool>>true if thread is still alive
Auto Trait Implementations§
impl Freeze for Receiver
impl !RefUnwindSafe for Receiver
impl Send for Receiver
impl Sync for Receiver
impl Unpin for Receiver
impl !UnwindSafe for Receiver
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