pub struct Observation {
pub source: MeshSource,
pub path: String,
pub bytes: Vec<u8>,
}Expand description
One raw observation: where it came from, and the bytes as heard. Parsing and verification happen once, in the manager, for every provider alike.
Fields§
§source: MeshSourceThe provider kind that heard it.
path: StringThe network path, as text: a sender address, a rendezvous URL.
bytes: Vec<u8>The datagram, unparsed and untrusted.
Auto Trait Implementations§
impl Freeze for Observation
impl RefUnwindSafe for Observation
impl Send for Observation
impl Sync for Observation
impl Unpin for Observation
impl UnsafeUnpin for Observation
impl UnwindSafe for Observation
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