#[non_exhaustive]pub struct UpdateFlags {
pub frl_update: bool,
pub ced_update: bool,
pub status_update: bool,
pub dsc_update: bool,
}Expand description
Decoded content of Update_0 (0x10) and Update_1 (0x11).
Flags are set by the sink to notify the source of state changes. The source
reads and then clears them via Scdc::clear_update_flags.
Because this type is both returned by read_update_flags and accepted by
clear_update_flags, use UpdateFlags::new to construct it.
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.frl_update: boolFRL status has changed; re-read Status_Flags.
ced_update: boolCED counters have been updated; re-read ERR_DET registers.
status_update: boolGeneral status has changed.
dsc_update: boolDSC status has changed (Update_1 bit 0).
Implementations§
Source§impl UpdateFlags
impl UpdateFlags
Trait Implementations§
Source§impl Clone for UpdateFlags
impl Clone for UpdateFlags
Source§fn clone(&self) -> UpdateFlags
fn clone(&self) -> UpdateFlags
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 UpdateFlags
Source§impl Debug for UpdateFlags
impl Debug for UpdateFlags
impl Eq for UpdateFlags
Source§impl PartialEq for UpdateFlags
impl PartialEq for UpdateFlags
impl StructuralPartialEq for UpdateFlags
Auto Trait Implementations§
impl Freeze for UpdateFlags
impl RefUnwindSafe for UpdateFlags
impl Send for UpdateFlags
impl Sync for UpdateFlags
impl Unpin for UpdateFlags
impl UnsafeUnpin for UpdateFlags
impl UnwindSafe for UpdateFlags
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