pub enum MessageSelfDestructType {
Timer(MessageSelfDestructTypeTimer),
Immediately,
}
Variants§
Timer(MessageSelfDestructTypeTimer)
The message will be self-destructed in the specified time after its content was opened
Immediately
The message can be opened only once and will be self-destructed once closed
Trait Implementations§
Source§impl Clone for MessageSelfDestructType
impl Clone for MessageSelfDestructType
Source§fn clone(&self) -> MessageSelfDestructType
fn clone(&self) -> MessageSelfDestructType
Returns a duplicate 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 MessageSelfDestructType
impl Debug for MessageSelfDestructType
Source§impl<'de> Deserialize<'de> for MessageSelfDestructType
impl<'de> Deserialize<'de> for MessageSelfDestructType
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
Source§impl PartialEq for MessageSelfDestructType
impl PartialEq for MessageSelfDestructType
Source§impl Serialize for MessageSelfDestructType
impl Serialize for MessageSelfDestructType
impl StructuralPartialEq for MessageSelfDestructType
Auto Trait Implementations§
impl Freeze for MessageSelfDestructType
impl RefUnwindSafe for MessageSelfDestructType
impl Send for MessageSelfDestructType
impl Sync for MessageSelfDestructType
impl Unpin for MessageSelfDestructType
impl UnwindSafe for MessageSelfDestructType
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