Enum Tov
pub enum Tov {
None,
Time(CuDuration),
Range(CuTimeRange),
}
Expand description
The time of validity of a message can be more than one time but can be a time range of Tovs. For example a sub scan for a lidar, a set of images etc… can have a range of validity.
Variants§
Trait Implementations§
§impl<'__de> BorrowDecode<'__de> for Tov
impl<'__de> BorrowDecode<'__de> for Tov
§fn borrow_decode<__D>(decoder: &mut __D) -> Result<Tov, DecodeError>where
__D: BorrowDecoder<'__de>,
fn borrow_decode<__D>(decoder: &mut __D) -> Result<Tov, DecodeError>where
__D: BorrowDecoder<'__de>,
Attempt to decode this type with the given BorrowDecode.
§impl<'de> Deserialize<'de> for Tov
impl<'de> Deserialize<'de> for Tov
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Tov, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Tov, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl From<CuDuration> for Tov
impl From<CuDuration> for Tov
§fn from(duration: CuDuration) -> Tov
fn from(duration: CuDuration) -> Tov
Converts to this type from the input type.
§impl From<Option<CuDuration>> for Tov
impl From<Option<CuDuration>> for Tov
§fn from(duration: Option<CuDuration>) -> Tov
fn from(duration: Option<CuDuration>) -> Tov
Converts to this type from the input type.
§impl Serialize for Tov
impl Serialize for Tov
§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 StructuralPartialEq for Tov
Auto Trait Implementations§
impl Freeze for Tov
impl RefUnwindSafe for Tov
impl Send for Tov
impl Sync for Tov
impl Unpin for Tov
impl UnwindSafe for Tov
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