pub struct Emitter(/* private fields */);Implementations§
Source§impl Emitter
impl Emitter
pub fn emit<T: 'static + Send + Sync>( &self, component_id: ComponentId<T>, value: T, ) -> Result<(), SendError<ViewMessage>>
pub async fn emit_async<T: 'static + Send + Sync>( &self, component_id: ComponentId<T>, value: T, ) -> Result<(), SendError<ViewMessage>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Emitter
impl RefUnwindSafe for Emitter
impl Send for Emitter
impl Sync for Emitter
impl Unpin for Emitter
impl UnwindSafe for Emitter
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