#[non_exhaustive]pub enum DelayParameters {
Timeout {
timeout: Duration,
},
}
Expand description
The query parameters for a delayed event request.
It contains the timeout
configuration for a delayed event.
§Note:
This is an Enum since the following properties might be added:
The Timeout case might get an additional optional delay_parent_id
property.
The optional parent id is used to create a secondary timeout.
In a delay group with two timeouts only one of them will ever be sent.
The Action case might be added:
Adds an additional action to a delay event without a timeout but requires a delay_id
(of the
parent delay event). A possible matrix event that can be send as an alternative to the parent
delay.
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.
Timeout
Sending a delayed event with a timeout. The response will contain a (server
generated) delay_id
instead of an event_id
.
Trait Implementations§
Source§impl Clone for DelayParameters
impl Clone for DelayParameters
Source§fn clone(&self) -> DelayParameters
fn clone(&self) -> DelayParameters
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DelayParameters
impl Debug for DelayParameters
Source§impl<'de> Deserialize<'de> for DelayParameters
impl<'de> Deserialize<'de> for DelayParameters
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DelayParameters
impl RefUnwindSafe for DelayParameters
impl Send for DelayParameters
impl Sync for DelayParameters
impl Unpin for DelayParameters
impl UnwindSafe for DelayParameters
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