Enum ruma::api::federation::transactions::edu::Edu [−][src]
pub enum Edu {
Presence(PresenceContent),
Receipt(ReceiptContent),
Typing(TypingContent),
DeviceListUpdate(DeviceListUpdateContent),
DirectToDevice(DirectDeviceContent),
// some variants omitted
}
api
and (crate features federation-api
or federation-api-c
or federation-api-s
) only.Expand description
Type for passing ephemeral data to homeservers.
Variants
Presence(PresenceContent)
An EDU representing presence updates for users of the sending homeserver.
Receipt(ReceiptContent)
An EDU representing receipt updates for users of the sending homeserver.
Typing(TypingContent)
A typing notification EDU for a user in a room.
DeviceListUpdate(DeviceListUpdateContent)
An EDU that lets servers push details to each other when one of their users adds a new device to their account, required for E2E encryption to correctly target the current set of devices for a given user.
DirectToDevice(DirectDeviceContent)
An EDU that lets servers push send events directly to a specific device on a remote server - for instance, to maintain an Olm E2E encrypted message channel between a local and remote device.
Trait Implementations
pub fn deserialize<D>(
deserializer: D
) -> Result<Edu, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
pub fn deserialize<D>(
deserializer: D
) -> Result<Edu, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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 Edu
impl UnwindSafe for Edu
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