pub struct AttributeObservation {
pub processor: ProcessorId,
pub attribute: ProcessorAttribute,
pub value: u32,
pub source: Source,
}Expand description
One source’s claim about one processor’s attribute.
The (subject, claim, source) triple of D-18, where
the subject is (processor, attribute) rather than a relation identity.
Held as a list and never reduced, for the same reason relations hold their
observations as a set: collapsing them would destroy the disagreement, which
is the only thing a second observer is for.
Fields§
§processor: ProcessorIdThe processor this is about.
attribute: ProcessorAttributeWhich attribute.
value: u32What this source said its value is.
source: SourceWhich source said it.
Implementations§
Source§impl AttributeObservation
impl AttributeObservation
Sourcepub fn new(
processor: ProcessorId,
attribute: ProcessorAttribute,
value: u32,
source: Source,
) -> Self
pub fn new( processor: ProcessorId, attribute: ProcessorAttribute, value: u32, source: Source, ) -> Self
An observation of attribute on processor.
Sourcepub fn subject(&self) -> (ProcessorId, ProcessorAttribute)
pub fn subject(&self) -> (ProcessorId, ProcessorAttribute)
The subject this observation is about.
Trait Implementations§
Source§impl Clone for AttributeObservation
impl Clone for AttributeObservation
Source§fn clone(&self) -> AttributeObservation
fn clone(&self) -> AttributeObservation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AttributeObservation
Source§impl Debug for AttributeObservation
impl Debug for AttributeObservation
Source§impl<'de> Deserialize<'de> for AttributeObservation
impl<'de> Deserialize<'de> for AttributeObservation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AttributeObservation
Source§impl Hash for AttributeObservation
impl Hash for AttributeObservation
Source§impl PartialEq for AttributeObservation
impl PartialEq for AttributeObservation
Source§impl Serialize for AttributeObservation
impl Serialize for AttributeObservation
impl StructuralPartialEq for AttributeObservation
Auto Trait Implementations§
impl Freeze for AttributeObservation
impl RefUnwindSafe for AttributeObservation
impl Send for AttributeObservation
impl Sync for AttributeObservation
impl Unpin for AttributeObservation
impl UnsafeUnpin for AttributeObservation
impl UnwindSafe for AttributeObservation
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