[][src]Enum moodyblues_sdk::event::EventType

pub enum EventType {
    Propose {
        block_height: u64,
        round_id: u64,
        proposer: String,
        hash: String,
    },
    Vote {
        block_height: u64,
        round_id: u64,
        voter: String,
        hash: String,
    },
    Error,
    Keyframe {
        frame_info: Keyframe,
    },
    Custom,
}

Event type definition

Variants

Propose

mark the event as a propose event

Fields of Propose

block_height: u64round_id: u64proposer: Stringhash: String
Vote

mark as a vote event

Fields of Vote

block_height: u64round_id: u64voter: Stringhash: String
Error

mark as an error event

Keyframe

mark the event as a keyframe

Fields of Keyframe

frame_info: Keyframe
Custom

mark the event as a custom event

Trait Implementations

impl Debug for EventType[src]

impl<'de> Deserialize<'de> for EventType[src]

impl Serialize for EventType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.