pub struct HtmlRendererEventPub { /* private fields */ }Expand description
Publisher for HTML renderer events.
Allows publishing renderer events to subscribers through a channel.
Implementations§
Source§impl HtmlRendererEventPub
impl HtmlRendererEventPub
Sourcepub fn new() -> (Self, Receiver<RendererEvent>)
pub fn new() -> (Self, Receiver<RendererEvent>)
Creates a new event publisher and returns the publisher along with a receiver.
Sourcepub fn publish(
&self,
event: RendererEvent,
) -> Result<(), HtmlRendererEventPubError>
pub fn publish( &self, event: RendererEvent, ) -> Result<(), HtmlRendererEventPubError>
§Errors
- If the sender failed to send the event
Trait Implementations§
Source§impl Clone for HtmlRendererEventPub
impl Clone for HtmlRendererEventPub
Source§fn clone(&self) -> HtmlRendererEventPub
fn clone(&self) -> HtmlRendererEventPub
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HtmlRendererEventPub
impl RefUnwindSafe for HtmlRendererEventPub
impl Send for HtmlRendererEventPub
impl Sync for HtmlRendererEventPub
impl Unpin for HtmlRendererEventPub
impl UnsafeUnpin for HtmlRendererEventPub
impl UnwindSafe for HtmlRendererEventPub
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