pub enum MsgData<TCustom> {
System(System),
Custom(TCustom),
}
Expand description
Тип сообщения
Variants§
Implementations§
Source§impl<TMsg> MsgData<TMsg>where
TMsg: MsgDataBound,
impl<TMsg> MsgData<TMsg>where
TMsg: MsgDataBound,
Sourcepub fn define_time_to_live(&self) -> TimeToLiveValue
pub fn define_time_to_live(&self) -> TimeToLiveValue
Задать ограничение времени жизни сообщения
Trait Implementations§
Source§impl<'de, TCustom> Deserialize<'de> for MsgData<TCustom>where
TCustom: Deserialize<'de>,
impl<'de, TCustom> Deserialize<'de> for MsgData<TCustom>where
TCustom: Deserialize<'de>,
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
impl<TCustom> StructuralPartialEq for MsgData<TCustom>
Auto Trait Implementations§
impl<TCustom> Freeze for MsgData<TCustom>where
TCustom: Freeze,
impl<TCustom> RefUnwindSafe for MsgData<TCustom>where
TCustom: RefUnwindSafe,
impl<TCustom> Send for MsgData<TCustom>where
TCustom: Send,
impl<TCustom> Sync for MsgData<TCustom>where
TCustom: Sync,
impl<TCustom> Unpin for MsgData<TCustom>where
TCustom: Unpin,
impl<TCustom> UnwindSafe for MsgData<TCustom>where
TCustom: UnwindSafe,
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