penumbra_proto::event

Trait ProtoEvent

Source
pub trait ProtoEvent:
    Message
    + Name
    + Serialize
    + DeserializeOwned
    + Sized {
    // Provided methods
    fn into_event(&self) -> Event { ... }
    fn from_event(event: &Event) -> Result<Self> { ... }
}

Provided Methods§

Source

fn into_event(&self) -> Event

Source

fn from_event(event: &Event) -> Result<Self>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§