Struct ruma::events::dummy::DummyToDeviceEventContent [−][src]
pub struct DummyToDeviceEventContent;
events
only.Expand description
The payload for DummyEvent
.
This event type is used to indicate new Olm sessions for end-to-end encryption.
Typically it is encrypted as an m.room.encrypted event, then sent as a to-device event.
The event does not have any content associated with it. The sending client is expected to send a key share request shortly after this message, causing the receiving client to process this m.dummy event as the most recent event and using the keyshare request to set up the session. The keyshare request and m.dummy combination should result in the original sending client receiving keys over the newly established session.
Implementations
Create a new DummyToDeviceEventContent
.
Trait Implementations
Returns the “default value” for a type. Read more
pub fn deserialize<D>(
deserializer: D
) -> Result<DummyToDeviceEventContent, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
pub fn deserialize<D>(
deserializer: D
) -> Result<DummyToDeviceEventContent, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
A matrix event identifier, like m.room.message
.
pub fn from_parts(
ev_type: &str,
content: &RawValue
) -> Result<DummyToDeviceEventContent, Error>
pub fn from_parts(
ev_type: &str,
content: &RawValue
) -> Result<DummyToDeviceEventContent, Error>
Constructs the given event content.
Performs the conversion.
pub fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
pub fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for DummyToDeviceEventContent
impl Send for DummyToDeviceEventContent
impl Sync for DummyToDeviceEventContent
impl Unpin for DummyToDeviceEventContent
impl UnwindSafe for DummyToDeviceEventContent
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more