pub struct SignalEnvelope {
pub signal_id: String,
pub emitted_at: SystemTime,
pub source: SignalSource,
pub device: DeviceContext,
pub application: ApplicationContext,
pub payload: StructuralSignal,
}Fields§
§signal_id: String§emitted_at: SystemTime§source: SignalSource§device: DeviceContext§application: ApplicationContext§payload: StructuralSignalImplementations§
Source§impl SignalEnvelope
impl SignalEnvelope
pub fn new( source: SignalSource, device: DeviceContext, application: ApplicationContext, payload: StructuralSignal, ) -> Self
pub fn from_signal( device: DeviceContext, application: ApplicationContext, payload: StructuralSignal, ) -> Self
Trait Implementations§
Source§impl Clone for SignalEnvelope
impl Clone for SignalEnvelope
Source§fn clone(&self) -> SignalEnvelope
fn clone(&self) -> SignalEnvelope
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 SignalEnvelope
impl Debug for SignalEnvelope
Source§impl<'de> Deserialize<'de> for SignalEnvelope
impl<'de> Deserialize<'de> for SignalEnvelope
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 SignalEnvelope
impl RefUnwindSafe for SignalEnvelope
impl Send for SignalEnvelope
impl Sync for SignalEnvelope
impl Unpin for SignalEnvelope
impl UnsafeUnpin for SignalEnvelope
impl UnwindSafe for SignalEnvelope
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