pub struct DrawLoop { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Runnable for DrawLoop
impl Runnable for DrawLoop
fn run(&mut self) -> Result<bool, Box<dyn Error>>
fn receive_updates(&mut self) -> (AppContext, Vec<Message>)
fn process(&mut self, app_context: AppContext, messages: Vec<Message>)
fn update_app_context(&mut self, app_context: AppContext)
fn set_uuid(&mut self, uuid: Uuid)
fn get_uuid(&self) -> Uuid
fn set_app_context_sender( &mut self, app_context_sender: Sender<(Uuid, Vec<FieldUpdate>)>, )
fn set_message_sender(&mut self, message_sender: Sender<(Uuid, Message)>)
fn set_app_context_receiver( &mut self, app_context_receiver: Receiver<(Uuid, Vec<FieldUpdate>)>, )
fn set_message_receiver(&mut self, message_receiver: Receiver<(Uuid, Message)>)
fn get_app_context(&self) -> &AppContext
fn get_app_context_sender(&self) -> &Option<Sender<(Uuid, Vec<FieldUpdate>)>>
fn get_message_sender(&self) -> &Option<Sender<(Uuid, Message)>>
fn send_app_context_update(&self, old_app_context: AppContext)
fn send_message(&self, msg: Message)
Auto Trait Implementations§
impl Freeze for DrawLoop
impl RefUnwindSafe for DrawLoop
impl Send for DrawLoop
impl !Sync for DrawLoop
impl Unpin for DrawLoop
impl UnwindSafe for DrawLoop
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.