pub trait ToDeviceEventContent: Sized + Serialize {
// Required method
fn event_type(&self) -> ToDeviceEventType;
}
Expand description
Content of a to-device event.
Required Methods§
Sourcefn event_type(&self) -> ToDeviceEventType
fn event_type(&self) -> ToDeviceEventType
Get the event’s type, like m.room_key
.
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.