pub struct DrawHandler { /* private fields */ }Expand description
Manage the communicators
Implementations§
Source§impl DrawHandler
impl DrawHandler
Sourcepub fn add(&mut self, communicator: DrawCommunicator)
pub fn add(&mut self, communicator: DrawCommunicator)
Add a communicator
Sourcepub fn all(&self) -> Vec<DrawCommunicator>
pub fn all(&self) -> Vec<DrawCommunicator>
Returns all communicators
Sourcepub fn get(&self, id: impl ToString) -> Option<DrawCommunicator>
pub fn get(&self, id: impl ToString) -> Option<DrawCommunicator>
Return a communicator that has the same ID
Sourcepub fn remove_all(&mut self)
pub fn remove_all(&mut self)
Remove all communicators
Trait Implementations§
Source§impl Clone for DrawHandler
impl Clone for DrawHandler
Source§fn clone(&self) -> DrawHandler
fn clone(&self) -> DrawHandler
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DrawHandler
impl RefUnwindSafe for DrawHandler
impl Send for DrawHandler
impl Sync for DrawHandler
impl Unpin for DrawHandler
impl UnwindSafe for DrawHandler
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