pub enum TopicSrc<'a> {
Owned(Topic),
Shared(&'a Topic),
}Expand description
An impl Event publishes each topic as a TopicSrc value.
Variants§
Owned(Topic)
The topic is this owned value.
The topic is available via a reference into the event
(or a 'static reference).
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for TopicSrc<'a>
impl<'a> RefUnwindSafe for TopicSrc<'a>
impl<'a> Send for TopicSrc<'a>
impl<'a> Sync for TopicSrc<'a>
impl<'a> Unpin for TopicSrc<'a>
impl<'a> UnsafeUnpin for TopicSrc<'a>
impl<'a> UnwindSafe for TopicSrc<'a>
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