pub struct CuStampedData<T>where
T: CuMsgPayload,{
pub tov: Tov,
pub metadata: CuMsgMetadata,
/* private fields */
}
Expand description
CuMsg is the envelope holding the msg payload and the metadata between tasks.
Fields§
§tov: Tov
The time of validity of the message. It can be undefined (None), one measure point or a range of measures (TimeRange).
metadata: CuMsgMetadata
This metadata is the data that is common to all messages.
Implementations§
Source§impl<T> CuStampedData<T>where
T: CuMsgPayload,
impl<T> CuStampedData<T>where
T: CuMsgPayload,
pub fn new(payload: Option<T>) -> CuStampedData<T>
pub fn payload(&self) -> Option<&T>
pub fn set_payload(&mut self, payload: T)
pub fn clear_payload(&mut self)
pub fn payload_mut(&mut self) -> &mut Option<T>
Trait Implementations§
Source§impl<'__de, T, __Context> BorrowDecode<'__de, __Context> for CuStampedData<T>where
T: CuMsgPayload + BorrowDecode<'__de, __Context>,
impl<'__de, T, __Context> BorrowDecode<'__de, __Context> for CuStampedData<T>where
T: CuMsgPayload + BorrowDecode<'__de, __Context>,
Source§fn borrow_decode<__D>(
decoder: &mut __D,
) -> Result<CuStampedData<T>, DecodeError>where
__D: BorrowDecoder<'__de, Context = __Context>,
fn borrow_decode<__D>(
decoder: &mut __D,
) -> Result<CuStampedData<T>, DecodeError>where
__D: BorrowDecoder<'__de, Context = __Context>,
Attempt to decode this type with the given BorrowDecode.
Source§impl<T> Clone for CuStampedData<T>where
T: Clone + CuMsgPayload,
impl<T> Clone for CuStampedData<T>where
T: Clone + CuMsgPayload,
Source§fn clone(&self) -> CuStampedData<T>
fn clone(&self) -> CuStampedData<T>
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<T> Debug for CuStampedData<T>where
T: Debug + CuMsgPayload,
impl<T> Debug for CuStampedData<T>where
T: Debug + CuMsgPayload,
Source§impl<T, __Context> Decode<__Context> for CuStampedData<T>where
T: CuMsgPayload + Decode<__Context>,
impl<T, __Context> Decode<__Context> for CuStampedData<T>where
T: CuMsgPayload + Decode<__Context>,
Source§fn decode<__D>(decoder: &mut __D) -> Result<CuStampedData<T>, DecodeError>where
__D: Decoder<Context = __Context>,
fn decode<__D>(decoder: &mut __D) -> Result<CuStampedData<T>, DecodeError>where
__D: Decoder<Context = __Context>,
Attempt to decode this type with the given Decode.
Source§impl<T> Default for CuStampedData<T>where
T: Default + CuMsgPayload,
impl<T> Default for CuStampedData<T>where
T: Default + CuMsgPayload,
Source§fn default() -> CuStampedData<T>
fn default() -> CuStampedData<T>
Returns the “default value” for a type. Read more
Source§impl<T> Encode for CuStampedData<T>where
T: CuMsgPayload + Encode,
impl<T> Encode for CuStampedData<T>where
T: CuMsgPayload + Encode,
Source§impl<T> ErasedCuStampedData for CuStampedData<T>where
T: CuMsgPayload,
impl<T> ErasedCuStampedData for CuStampedData<T>where
T: CuMsgPayload,
Source§impl<T> Serialize for CuStampedData<T>where
T: CuMsgPayload + Serialize,
impl<T> Serialize for CuStampedData<T>where
T: CuMsgPayload + Serialize,
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<'cl, T> CuMsgPack<'cl> for &'cl CuStampedData<T>where
T: CuMsgPayload,
impl<'cl, T> CuMsgPack<'cl> for &'cl mut CuStampedData<T>where
T: CuMsgPayload,
Auto Trait Implementations§
impl<T> Freeze for CuStampedData<T>where
T: Freeze,
impl<T> RefUnwindSafe for CuStampedData<T>where
T: RefUnwindSafe,
impl<T> Send for CuStampedData<T>where
T: Send,
impl<T> Sync for CuStampedData<T>where
T: Sync,
impl<T> Unpin for CuStampedData<T>where
T: Unpin,
impl<T> UnwindSafe for CuStampedData<T>where
T: 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