pub enum MastodonEvent {
Update(Box<Status>),
Notification(Box<Notification>),
Delete(String),
FiltersChanged,
}Expand description
A high-level, parsed event from the Mastodon stream.
Variants§
Update(Box<Status>)
A new status has been posted.
Notification(Box<Notification>)
A new notification (mention, follow, etc.) has been received.
Delete(String)
a status was deleted (contains the ID).
FiltersChanged
Content filters were updated.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MastodonEvent
impl RefUnwindSafe for MastodonEvent
impl Send for MastodonEvent
impl Sync for MastodonEvent
impl Unpin for MastodonEvent
impl UnwindSafe for MastodonEvent
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