pub enum TimelyEvent {
Show 13 variants
Operates(OperatesEvent),
Channels(ChannelsEvent),
PushProgress(PushProgressEvent),
Messages(MessagesEvent),
Schedule(ScheduleEvent),
Shutdown(ShutdownEvent),
Application(ApplicationEvent),
GuardedMessage(GuardedMessageEvent),
GuardedProgress(GuardedProgressEvent),
CommChannels(CommChannelsEvent),
Input(InputEvent),
Park(ParkEvent),
Text(String),
}Variants§
Operates(OperatesEvent)
Channels(ChannelsEvent)
PushProgress(PushProgressEvent)
Messages(MessagesEvent)
Schedule(ScheduleEvent)
Shutdown(ShutdownEvent)
Application(ApplicationEvent)
GuardedMessage(GuardedMessageEvent)
GuardedProgress(GuardedProgressEvent)
CommChannels(CommChannelsEvent)
Input(InputEvent)
Park(ParkEvent)
Text(String)
Implementations§
Source§impl TimelyEvent
impl TimelyEvent
Sourcepub const fn is_operates(&self) -> bool
pub const fn is_operates(&self) -> bool
Returns true if the timely_event is TimelyEvent::Operates.
Sourcepub const fn is_channels(&self) -> bool
pub const fn is_channels(&self) -> bool
Returns true if the timely_event is TimelyEvent::Channels.
Sourcepub const fn is_push_progress(&self) -> bool
pub const fn is_push_progress(&self) -> bool
Returns true if the timely_event is TimelyEvent::PushProgress.
Sourcepub const fn is_messages(&self) -> bool
pub const fn is_messages(&self) -> bool
Returns true if the timely_event is TimelyEvent::Messages.
Sourcepub const fn is_schedule(&self) -> bool
pub const fn is_schedule(&self) -> bool
Returns true if the timely_event is TimelyEvent::Schedule.
Sourcepub const fn is_shutdown(&self) -> bool
pub const fn is_shutdown(&self) -> bool
Returns true if the timely_event is TimelyEvent::Shutdown.
Sourcepub const fn is_application(&self) -> bool
pub const fn is_application(&self) -> bool
Returns true if the timely_event is TimelyEvent::Application.
Sourcepub const fn is_guarded_message(&self) -> bool
pub const fn is_guarded_message(&self) -> bool
Returns true if the timely_event is TimelyEvent::GuardedMessage.
Sourcepub const fn is_guarded_progress(&self) -> bool
pub const fn is_guarded_progress(&self) -> bool
Returns true if the timely_event is TimelyEvent::GuardedProgress.
Sourcepub const fn is_comm_channels(&self) -> bool
pub const fn is_comm_channels(&self) -> bool
Returns true if the timely_event is TimelyEvent::CommChannels.
Sourcepub const fn is_input(&self) -> bool
pub const fn is_input(&self) -> bool
Returns true if the timely_event is TimelyEvent::Input.
Sourcepub const fn is_park(&self) -> bool
pub const fn is_park(&self) -> bool
Returns true if the timely_event is TimelyEvent::Park.
Sourcepub const fn is_text(&self) -> bool
pub const fn is_text(&self) -> bool
Returns true if the timely_event is TimelyEvent::Text.
pub const fn as_operates(&self) -> Option<&OperatesEvent>
pub fn try_into_operates(self) -> Result<OperatesEvent, Self>
pub const fn as_channels(&self) -> Option<&ChannelsEvent>
pub fn try_into_channels(self) -> Result<ChannelsEvent, Self>
pub const fn as_push_progress(&self) -> Option<&PushProgressEvent>
pub fn try_into_push_progress(self) -> Result<PushProgressEvent, Self>
pub const fn as_messages(&self) -> Option<&MessagesEvent>
pub fn try_into_messages(self) -> Result<MessagesEvent, Self>
pub const fn as_schedule(&self) -> Option<&ScheduleEvent>
pub fn try_into_schedule(self) -> Result<ScheduleEvent, Self>
pub const fn as_shutdown(&self) -> Option<&ShutdownEvent>
pub fn try_into_shutdown(self) -> Result<ShutdownEvent, Self>
pub const fn as_application(&self) -> Option<&ApplicationEvent>
pub fn try_into_application(self) -> Result<ApplicationEvent, Self>
pub const fn as_guarded_message(&self) -> Option<&GuardedMessageEvent>
pub fn try_into_guarded_message(self) -> Result<GuardedMessageEvent, Self>
pub const fn as_guarded_progress(&self) -> Option<&GuardedProgressEvent>
pub fn try_into_guarded_progress(self) -> Result<GuardedProgressEvent, Self>
pub const fn as_comm_channels(&self) -> Option<&CommChannelsEvent>
pub fn try_into_comm_channels(self) -> Result<CommChannelsEvent, Self>
pub const fn as_input(&self) -> Option<&InputEvent>
pub fn try_into_input(self) -> Result<InputEvent, Self>
pub const fn as_park(&self) -> Option<&ParkEvent>
pub fn try_into_park(self) -> Result<ParkEvent, Self>
pub const fn as_text(&self) -> Option<&String>
pub fn try_into_text(self) -> Result<String, Self>
pub const fn distinguishing_id(&self) -> DistinguishingId
Trait Implementations§
Source§impl Archive for TimelyEventwhere
OperatesEvent: Archive,
ChannelsEvent: Archive,
PushProgressEvent: Archive,
MessagesEvent: Archive,
ScheduleEvent: Archive,
ShutdownEvent: Archive,
ApplicationEvent: Archive,
GuardedMessageEvent: Archive,
GuardedProgressEvent: Archive,
CommChannelsEvent: Archive,
InputEvent: Archive,
ParkEvent: Archive,
String: Archive,
impl Archive for TimelyEventwhere
OperatesEvent: Archive,
ChannelsEvent: Archive,
PushProgressEvent: Archive,
MessagesEvent: Archive,
ScheduleEvent: Archive,
ShutdownEvent: Archive,
ApplicationEvent: Archive,
GuardedMessageEvent: Archive,
GuardedProgressEvent: Archive,
CommChannelsEvent: Archive,
InputEvent: Archive,
ParkEvent: Archive,
String: Archive,
Source§type Archived = ArchivedTimelyEvent
type Archived = ArchivedTimelyEvent
Source§type Resolver = TimelyEventResolver
type Resolver = TimelyEventResolver
Source§impl Clone for TimelyEvent
impl Clone for TimelyEvent
Source§fn clone(&self) -> TimelyEvent
fn clone(&self) -> TimelyEvent
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TimelyEvent
impl Debug for TimelyEvent
Source§impl<__D: Fallible + ?Sized> Deserialize<TimelyEvent, __D> for Archived<TimelyEvent>where
OperatesEvent: Archive,
Archived<OperatesEvent>: Deserialize<OperatesEvent, __D>,
ChannelsEvent: Archive,
Archived<ChannelsEvent>: Deserialize<ChannelsEvent, __D>,
PushProgressEvent: Archive,
Archived<PushProgressEvent>: Deserialize<PushProgressEvent, __D>,
MessagesEvent: Archive,
Archived<MessagesEvent>: Deserialize<MessagesEvent, __D>,
ScheduleEvent: Archive,
Archived<ScheduleEvent>: Deserialize<ScheduleEvent, __D>,
ShutdownEvent: Archive,
Archived<ShutdownEvent>: Deserialize<ShutdownEvent, __D>,
ApplicationEvent: Archive,
Archived<ApplicationEvent>: Deserialize<ApplicationEvent, __D>,
GuardedMessageEvent: Archive,
Archived<GuardedMessageEvent>: Deserialize<GuardedMessageEvent, __D>,
GuardedProgressEvent: Archive,
Archived<GuardedProgressEvent>: Deserialize<GuardedProgressEvent, __D>,
CommChannelsEvent: Archive,
Archived<CommChannelsEvent>: Deserialize<CommChannelsEvent, __D>,
InputEvent: Archive,
Archived<InputEvent>: Deserialize<InputEvent, __D>,
ParkEvent: Archive,
Archived<ParkEvent>: Deserialize<ParkEvent, __D>,
String: Archive,
Archived<String>: Deserialize<String, __D>,
impl<__D: Fallible + ?Sized> Deserialize<TimelyEvent, __D> for Archived<TimelyEvent>where
OperatesEvent: Archive,
Archived<OperatesEvent>: Deserialize<OperatesEvent, __D>,
ChannelsEvent: Archive,
Archived<ChannelsEvent>: Deserialize<ChannelsEvent, __D>,
PushProgressEvent: Archive,
Archived<PushProgressEvent>: Deserialize<PushProgressEvent, __D>,
MessagesEvent: Archive,
Archived<MessagesEvent>: Deserialize<MessagesEvent, __D>,
ScheduleEvent: Archive,
Archived<ScheduleEvent>: Deserialize<ScheduleEvent, __D>,
ShutdownEvent: Archive,
Archived<ShutdownEvent>: Deserialize<ShutdownEvent, __D>,
ApplicationEvent: Archive,
Archived<ApplicationEvent>: Deserialize<ApplicationEvent, __D>,
GuardedMessageEvent: Archive,
Archived<GuardedMessageEvent>: Deserialize<GuardedMessageEvent, __D>,
GuardedProgressEvent: Archive,
Archived<GuardedProgressEvent>: Deserialize<GuardedProgressEvent, __D>,
CommChannelsEvent: Archive,
Archived<CommChannelsEvent>: Deserialize<CommChannelsEvent, __D>,
InputEvent: Archive,
Archived<InputEvent>: Deserialize<InputEvent, __D>,
ParkEvent: Archive,
Archived<ParkEvent>: Deserialize<ParkEvent, __D>,
String: Archive,
Archived<String>: Deserialize<String, __D>,
Source§fn deserialize(&self, deserializer: &mut __D) -> Result<TimelyEvent, __D::Error>
fn deserialize(&self, deserializer: &mut __D) -> Result<TimelyEvent, __D::Error>
Source§impl From<ApplicationEvent> for TimelyEvent
impl From<ApplicationEvent> for TimelyEvent
Source§fn from(v: ApplicationEvent) -> Self
fn from(v: ApplicationEvent) -> Self
Source§impl From<ChannelsEvent> for TimelyEvent
impl From<ChannelsEvent> for TimelyEvent
Source§fn from(v: ChannelsEvent) -> Self
fn from(v: ChannelsEvent) -> Self
Source§impl From<CommChannelsEvent> for TimelyEvent
impl From<CommChannelsEvent> for TimelyEvent
Source§fn from(v: CommChannelsEvent) -> Self
fn from(v: CommChannelsEvent) -> Self
Source§impl From<GuardedMessageEvent> for TimelyEvent
impl From<GuardedMessageEvent> for TimelyEvent
Source§fn from(v: GuardedMessageEvent) -> Self
fn from(v: GuardedMessageEvent) -> Self
Source§impl From<GuardedProgressEvent> for TimelyEvent
impl From<GuardedProgressEvent> for TimelyEvent
Source§fn from(v: GuardedProgressEvent) -> Self
fn from(v: GuardedProgressEvent) -> Self
Source§impl From<InputEvent> for TimelyEvent
impl From<InputEvent> for TimelyEvent
Source§fn from(v: InputEvent) -> Self
fn from(v: InputEvent) -> Self
Source§impl From<MessagesEvent> for TimelyEvent
impl From<MessagesEvent> for TimelyEvent
Source§fn from(v: MessagesEvent) -> Self
fn from(v: MessagesEvent) -> Self
Source§impl From<OperatesEvent> for TimelyEvent
impl From<OperatesEvent> for TimelyEvent
Source§fn from(v: OperatesEvent) -> Self
fn from(v: OperatesEvent) -> Self
Source§impl From<ParkEvent> for TimelyEvent
impl From<ParkEvent> for TimelyEvent
Source§impl From<PushProgressEvent> for TimelyEvent
impl From<PushProgressEvent> for TimelyEvent
Source§fn from(v: PushProgressEvent) -> Self
fn from(v: PushProgressEvent) -> Self
Source§impl From<ScheduleEvent> for TimelyEvent
impl From<ScheduleEvent> for TimelyEvent
Source§fn from(v: ScheduleEvent) -> Self
fn from(v: ScheduleEvent) -> Self
Source§impl From<ShutdownEvent> for TimelyEvent
impl From<ShutdownEvent> for TimelyEvent
Source§fn from(v: ShutdownEvent) -> Self
fn from(v: ShutdownEvent) -> Self
Source§impl From<TimelyEvent> for TimelyEvent
impl From<TimelyEvent> for TimelyEvent
Source§fn from(event: RawTimelyEvent) -> Self
fn from(event: RawTimelyEvent) -> Self
Source§impl Hash for TimelyEvent
impl Hash for TimelyEvent
Source§impl Ord for TimelyEvent
impl Ord for TimelyEvent
Source§fn cmp(&self, other: &TimelyEvent) -> Ordering
fn cmp(&self, other: &TimelyEvent) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for TimelyEvent
impl PartialEq for TimelyEvent
Source§impl PartialOrd for TimelyEvent
impl PartialOrd for TimelyEvent
Source§impl<__S: Fallible + ?Sized> Serialize<__S> for TimelyEventwhere
OperatesEvent: Serialize<__S>,
ChannelsEvent: Serialize<__S>,
PushProgressEvent: Serialize<__S>,
MessagesEvent: Serialize<__S>,
ScheduleEvent: Serialize<__S>,
ShutdownEvent: Serialize<__S>,
ApplicationEvent: Serialize<__S>,
GuardedMessageEvent: Serialize<__S>,
GuardedProgressEvent: Serialize<__S>,
CommChannelsEvent: Serialize<__S>,
InputEvent: Serialize<__S>,
ParkEvent: Serialize<__S>,
String: Serialize<__S>,
impl<__S: Fallible + ?Sized> Serialize<__S> for TimelyEventwhere
OperatesEvent: Serialize<__S>,
ChannelsEvent: Serialize<__S>,
PushProgressEvent: Serialize<__S>,
MessagesEvent: Serialize<__S>,
ScheduleEvent: Serialize<__S>,
ShutdownEvent: Serialize<__S>,
ApplicationEvent: Serialize<__S>,
GuardedMessageEvent: Serialize<__S>,
GuardedProgressEvent: Serialize<__S>,
CommChannelsEvent: Serialize<__S>,
InputEvent: Serialize<__S>,
ParkEvent: Serialize<__S>,
String: Serialize<__S>,
impl Eq for TimelyEvent
impl StructuralPartialEq for TimelyEvent
Auto Trait Implementations§
impl Freeze for TimelyEvent
impl RefUnwindSafe for TimelyEvent
impl Send for TimelyEvent
impl Sync for TimelyEvent
impl Unpin for TimelyEvent
impl UnwindSafe for TimelyEvent
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Source§impl<T> ArchiveUnsized for Twhere
T: Archive,
impl<T> ArchiveUnsized for Twhere
T: Archive,
Source§type Archived = <T as Archive>::Archived
type Archived = <T as Archive>::Archived
Archive, it may be unsized. Read more