#[non_exhaustive]pub struct Observed {
pub sender: EnergyManagementRole,
pub kind: Option<MessageKind>,
pub message: Option<Message>,
pub pruned: Vec<String>,
pub report: Report,
pub status: ReceptionStatusValues,
}Expand description
What an Analyzer made of one frame.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.sender: EnergyManagementRoleWhich side sent it.
kind: Option<MessageKind>What it claimed to be, where that could be read at all.
message: Option<Message>The message, when it decoded.
pruned: Vec<String>Properties the schema does not define, removed in Strictness::Lenient.
report: ReportEverything wrong with it — the intra-message rules and the cross-message ones.
status: ReceptionStatusValuesThe ReceptionStatus a receiver should have answered this message with.
The same choice RmSession and
CemSession make inside handle_text, by the same code, so a
recorded conversation can be diffed against it.
TEMPORARY_ERROR and PERMANENT_ERROR are never produced: they are about the
receiver rather than the message, and depend on an
InboundPolicy an observer does not have.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Observed
Auto Trait Implementations§
impl Freeze for Observed
impl RefUnwindSafe for Observed
impl Send for Observed
impl Sync for Observed
impl Unpin for Observed
impl UnsafeUnpin for Observed
impl UnwindSafe for Observed
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