pub struct ReconfigureSlot { /* private fields */ }Expand description
Capacity-1 latest-wins slot carrying the upstream-traveling
Reconfigure signal of a bidirectional link. Stores overwrite any
pending value; takes consume it. Cheap: one Arc<Mutex<Option<_>>>.
Implementations§
Source§impl ReconfigureSlot
impl ReconfigureSlot
pub fn store(&self, value: Reconfigure)
pub fn take(&self) -> Option<Reconfigure>
Trait Implementations§
Source§impl Clone for ReconfigureSlot
impl Clone for ReconfigureSlot
Source§fn clone(&self) -> ReconfigureSlot
fn clone(&self) -> ReconfigureSlot
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 moreSource§impl Debug for ReconfigureSlot
impl Debug for ReconfigureSlot
Source§impl Default for ReconfigureSlot
impl Default for ReconfigureSlot
Source§fn default() -> ReconfigureSlot
fn default() -> ReconfigureSlot
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for ReconfigureSlot
impl !UnwindSafe for ReconfigureSlot
impl Freeze for ReconfigureSlot
impl Send for ReconfigureSlot
impl Sync for ReconfigureSlot
impl Unpin for ReconfigureSlot
impl UnsafeUnpin for ReconfigureSlot
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