pub enum ExampleMessage {
ValueInstantF64(MsgContent<f64>),
ValueInstantBool(MsgContent<bool>),
ValueInstantString(MsgContent<String>),
}
Expand description
Пример реализации сообщения. Можно использовать для тестирования компонентов
Variants§
ValueInstantF64(MsgContent<f64>)
ValueInstantBool(MsgContent<bool>)
ValueInstantString(MsgContent<String>)
Trait Implementations§
source§impl Clone for ExampleMessage
impl Clone for ExampleMessage
source§fn clone(&self) -> ExampleMessage
fn clone(&self) -> ExampleMessage
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 ExampleMessage
impl Debug for ExampleMessage
source§impl<'de> Deserialize<'de> for ExampleMessage
impl<'de> Deserialize<'de> for ExampleMessage
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 IMessage for ExampleMessage
impl IMessage for ExampleMessage
source§impl MsgMeta for ExampleMessage
impl MsgMeta for ExampleMessage
source§impl PartialEq for ExampleMessage
impl PartialEq for ExampleMessage
source§fn eq(&self, other: &ExampleMessage) -> bool
fn eq(&self, other: &ExampleMessage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ExampleMessage
impl Serialize for ExampleMessage
impl StructuralPartialEq for ExampleMessage
Auto Trait Implementations§
impl RefUnwindSafe for ExampleMessage
impl Send for ExampleMessage
impl Sync for ExampleMessage
impl Unpin for ExampleMessage
impl UnwindSafe for ExampleMessage
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