pub struct ShortCircuitAssignment<'t, T: Instance> { /* private fields */ }Expand description
One channel’s short-circuit assignment: the transceiver to guard, and the saturation threshold to guard it with.
Implementations§
Source§impl<'t, T: Instance> ShortCircuitAssignment<'t, T>
impl<'t, T: Instance> ShortCircuitAssignment<'t, T>
Sourcepub const fn new(
transceiver: &'t dyn TransceiverTrait<T, Enabled>,
threshold: u8,
) -> Self
pub const fn new( transceiver: &'t dyn TransceiverTrait<T, Enabled>, threshold: u8, ) -> Self
Create an assignment: a transceiver and its short-circuit threshold.
Trait Implementations§
Source§impl<'t, T: Clone + Instance> Clone for ShortCircuitAssignment<'t, T>
impl<'t, T: Clone + Instance> Clone for ShortCircuitAssignment<'t, T>
Source§fn clone(&self) -> ShortCircuitAssignment<'t, T>
fn clone(&self) -> ShortCircuitAssignment<'t, T>
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<'t, T: Copy + Instance> Copy for ShortCircuitAssignment<'t, T>
Auto Trait Implementations§
impl<'t, T> !RefUnwindSafe for ShortCircuitAssignment<'t, T>
impl<'t, T> !Send for ShortCircuitAssignment<'t, T>
impl<'t, T> !Sync for ShortCircuitAssignment<'t, T>
impl<'t, T> !UnwindSafe for ShortCircuitAssignment<'t, T>
impl<'t, T> Freeze for ShortCircuitAssignment<'t, T>
impl<'t, T> Unpin for ShortCircuitAssignment<'t, T>
impl<'t, T> UnsafeUnpin for ShortCircuitAssignment<'t, T>
Blanket Implementations§
impl<T, I> Binding<I, NoHandler<I>> for T
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