#[non_exhaustive]pub enum Edu {
Presence(PresenceContent),
Receipt(ReceiptContent),
Typing(TypingContent),
DeviceListUpdate(DeviceListUpdateContent),
DirectToDevice(DirectDeviceContent),
SigningKeyUpdate(SigningKeyUpdateContent),
}
Available on crate feature
api
and (crate features federation-api-c
or federation-api-s
) only.Expand description
Type for passing ephemeral data to homeservers.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future 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.
SigningKeyUpdate(SigningKeyUpdateContent)
An EDU that lets servers push details to each other when one of their users updates their cross-signing keys.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Edu
impl<'de> Deserialize<'de> for Edu
Source§fn deserialize<D>(
deserializer: D,
) -> Result<Edu, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
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
Source§impl Serialize for Edu
impl Serialize for Edu
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
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 Freeze for Edu
impl RefUnwindSafe for Edu
impl Send for Edu
impl Sync for Edu
impl Unpin for Edu
impl UnwindSafe for Edu
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more