pub struct Answers { /* private fields */ }Expand description
What a caller answered at the gate: the write confirmation, and one answer per named gate the operation carries.
Default-closed in both halves, because a question nobody was asked is a
question nobody answered: an Answers built and never spoken to holds every
write back, and answering a gate no operation names opens nothing. Adding an
answer can only ever let a request through — never take one back.
Implementations§
Source§impl Answers
impl Answers
Sourcepub fn new() -> Self
pub fn new() -> Self
Nothing answered: what a read is put to the gate with, and what every write is refused by.
Trait Implementations§
impl Eq for Answers
impl StructuralPartialEq for Answers
Auto Trait Implementations§
impl Freeze for Answers
impl RefUnwindSafe for Answers
impl Send for Answers
impl Sync for Answers
impl Unpin for Answers
impl UnsafeUnpin for Answers
impl UnwindSafe for Answers
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.