pub enum ExampleMessage {
ValueInstantF64(Value<f64>),
ValueInstantBool(Value<bool>),
ValueInstantString(Value<String>),
Command(Command),
}
Expand description
Пример реализации сообщения. Можно использовать для тестирования компонентов
Variants§
ValueInstantF64(Value<f64>)
ValueInstantBool(Value<bool>)
ValueInstantString(Value<String>)
Command(Command)
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
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