pub enum TopicSrc<'a> {
Owned([u8; 32]),
Shared(&'a [u8; 32]),
}Expand description
An impl Event publishes each topic as a TopicSrc value.
Variants§
Owned([u8; 32])
The topic is this owned value.
The topic is available via a reference into the event
(or a 'static reference).
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