#[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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)