pub struct Snapshot(/* private fields */);Expand description
Validated, versioned observations for one device, server and principal.
Implementations§
Source§impl Snapshot
impl Snapshot
Sourcepub fn new(
device: impl Into<String>,
application_uri: impl Into<String>,
principal: impl Into<String>,
signals: Vec<SignalObservation>,
) -> Result<Self, Error>
pub fn new( device: impl Into<String>, application_uri: impl Into<String>, principal: impl Into<String>, signals: Vec<SignalObservation>, ) -> Result<Self, Error>
Build a version 1 snapshot in memory using the same rules as parse_snapshot.
Sourcepub fn application_uri(&self) -> &str
pub fn application_uri(&self) -> &str
ApplicationUri of the observed server.
Sourcepub fn signals(&self) -> &[SignalObservation]
pub fn signals(&self) -> &[SignalObservation]
Validated observations in declaration order, with canonical node identifiers.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Snapshot
impl Freeze for Snapshot
impl Move for Snapshot
impl RefUnwindSafe for Snapshot
impl Send for Snapshot
impl Sync for Snapshot
impl Unpin for Snapshot
impl UnsafeUnpin for Snapshot
impl UnwindSafe for Snapshot
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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