pub enum LatestDatapoint {
Numeric(DatapointDouble),
String(DatapointString),
}Expand description
Result for retrieving a latest datapoint from CDF.
Variants§
Implementations§
Source§impl LatestDatapoint
impl LatestDatapoint
Sourcepub fn numeric(&self) -> Option<&DatapointDouble>
pub fn numeric(&self) -> Option<&DatapointDouble>
Get the value of this as a numeric datapoint.
Sourcepub fn string(&self) -> Option<&DatapointString>
pub fn string(&self) -> Option<&DatapointString>
Get the value of this as a string datapoint.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LatestDatapoint
impl RefUnwindSafe for LatestDatapoint
impl Send for LatestDatapoint
impl Sync for LatestDatapoint
impl Unpin for LatestDatapoint
impl UnwindSafe for LatestDatapoint
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