pub enum Event<Payload: Clone, Signal = (), LogEntry: Clone = ()> {
Message(Message<Payload>),
Signal(Signal),
Raft(RaftEvent<LogEntry>),
EOF,
}
Variants§
Trait Implementations§
Source§impl<Payload: Clone + Clone, Signal: Clone, LogEntry: Clone + Clone> Clone for Event<Payload, Signal, LogEntry>
impl<Payload: Clone + Clone, Signal: Clone, LogEntry: Clone + Clone> Clone for Event<Payload, Signal, LogEntry>
Source§impl<Payload: Debug + Clone, Signal: Debug, LogEntry: Debug + Clone> Debug for Event<Payload, Signal, LogEntry>
impl<Payload: Debug + Clone, Signal: Debug, LogEntry: Debug + Clone> Debug for Event<Payload, Signal, LogEntry>
Source§impl<'de, Payload, Signal, LogEntry> Deserialize<'de> for Event<Payload, Signal, LogEntry>where
Payload: Deserialize<'de> + Clone,
Signal: Deserialize<'de>,
LogEntry: Deserialize<'de> + Clone,
impl<'de, Payload, Signal, LogEntry> Deserialize<'de> for Event<Payload, Signal, LogEntry>where
Payload: Deserialize<'de> + Clone,
Signal: Deserialize<'de>,
LogEntry: Deserialize<'de> + Clone,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<Payload, Signal, LogEntry> Freeze for Event<Payload, Signal, LogEntry>
impl<Payload, Signal, LogEntry> RefUnwindSafe for Event<Payload, Signal, LogEntry>
impl<Payload, Signal, LogEntry> Send for Event<Payload, Signal, LogEntry>
impl<Payload, Signal, LogEntry> Sync for Event<Payload, Signal, LogEntry>
impl<Payload, Signal, LogEntry> Unpin for Event<Payload, Signal, LogEntry>
impl<Payload, Signal, LogEntry> UnwindSafe for Event<Payload, Signal, LogEntry>
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