pub struct RelayFeedback { /* private fields */ }Expand description
Four independently observed Boolean status points in S1, S2, W3, W4 order.
Implementations§
Source§impl RelayFeedback
impl RelayFeedback
Sourcepub fn new(s1: &str, s2: &str, w3: &str, w4: &str) -> Result<Self, BridgeError>
pub fn new(s1: &str, s2: &str, w3: &str, w4: &str) -> Result<Self, BridgeError>
Configure unique MMS status leaf names for the four logical contact indications.
Sourcepub fn answer_read(
&self,
request: &ConfirmedRequest<'_>,
observed: Option<RelayContacts>,
) -> Answer
pub fn answer_read( &self, request: &ConfirmedRequest<'_>, observed: Option<RelayContacts>, ) -> Answer
Answer direct named reads using fresh, independently sampled indications. Supply None when feedback is unavailable or stale. Conflicting observed generation bits are reported individually to preserve the fault indication.
Auto Trait Implementations§
impl Freeze for RelayFeedback
impl RefUnwindSafe for RelayFeedback
impl Send for RelayFeedback
impl Sync for RelayFeedback
impl Unpin for RelayFeedback
impl UnsafeUnpin for RelayFeedback
impl UnwindSafe for RelayFeedback
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