#[non_exhaustive]pub struct StreamEvent {
pub kind: StreamEventKind,
pub event: StreamEventName,
pub data: Option<Article>,
/* private fields */
}Expand description
One element of a stream.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.kind: StreamEventKindCreated, Updated or Other.
event: StreamEventNameThe wire event name (open).
data: Option<Article>The article; None for Other.
Implementations§
Trait Implementations§
Source§impl Clone for StreamEvent
impl Clone for StreamEvent
Source§impl Debug for StreamEvent
impl Debug for StreamEvent
Source§impl PartialEq for StreamEvent
impl PartialEq for StreamEvent
impl StructuralPartialEq for StreamEvent
Auto Trait Implementations§
impl Forget for StreamEvent
impl Freeze for StreamEventwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Media>: Freeze,
PhantomData<String>: Freeze,
PhantomData<Company>: Freeze,
PhantomData<EventTag>: Freeze,
*const ArcInner<str> is !null: Freeze,
PhantomData<ArcInner<str>>: Freeze,
impl Move for StreamEvent
impl RefUnwindSafe for StreamEvent
impl Send for StreamEvent
impl Sync for StreamEvent
impl Unpin for StreamEvent
impl UnsafeUnpin for StreamEventwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Media>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<Company>: UnsafeUnpin,
PhantomData<EventTag>: UnsafeUnpin,
*const ArcInner<str> is !null: UnsafeUnpin,
PhantomData<ArcInner<str>>: UnsafeUnpin,
impl UnwindSafe for StreamEvent
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