pub struct SignalUpdate {
mask: Signals,
values: Signals,
}Expand description
A masked signal update applied by ObjectBase::signal.
All bits in mask are updated to match values; bits outside mask
are preserved.
Fields§
§mask: Signals§values: SignalsImplementations§
Source§impl SignalUpdate
impl SignalUpdate
pub const fn raise(raise: Signals) -> Self
pub const fn clear(clear: Signals) -> Self
pub const fn set_if(signal: Signals, cond: bool) -> Self
pub const fn and_raise(self, raise: Signals) -> Self
pub const fn and_clear(self, clear: Signals) -> Self
pub const fn apply(self, signals: Signals) -> Signals
Trait Implementations§
Source§impl Clone for SignalUpdate
impl Clone for SignalUpdate
impl Copy for SignalUpdate
Auto Trait Implementations§
impl Forget for SignalUpdate
impl Freeze for SignalUpdate
impl Move for SignalUpdate
impl RefUnwindSafe for SignalUpdate
impl Send for SignalUpdate
impl Sync for SignalUpdate
impl Unpin for SignalUpdate
impl UnsafeUnpin for SignalUpdate
impl UnwindSafe for SignalUpdate
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)