pub struct Scope<COMP: Component> { /* private fields */ }
Expand description
A context which contains a bridge to send a messages to a loop. Mostly services uses it.
Implementations
sourceimpl<COMP> Scope<COMP>where
COMP: Component + Renderable<COMP>,
impl<COMP> Scope<COMP>where
COMP: Component + Renderable<COMP>,
sourcepub fn send_message(&mut self, message: COMP::Message)
pub fn send_message(&mut self, message: COMP::Message)
Send message to a component.
Trait Implementations
Auto Trait Implementations
impl<COMP> !RefUnwindSafe for Scope<COMP>
impl<COMP> !Send for Scope<COMP>
impl<COMP> !Sync for Scope<COMP>
impl<COMP> Unpin for Scope<COMP>
impl<COMP> !UnwindSafe for Scope<COMP>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more