Struct mimicry::AnswersSender
source · pub struct AnswersSender<V> { /* private fields */ }
Expand description
Implementations
sourceimpl<V> AnswersSender<V>
impl<V> AnswersSender<V>
sourcepub fn send(&mut self, value: V) -> AnswersGuard<'_, V>
pub fn send(&mut self, value: V) -> AnswersGuard<'_, V>
Sends a single value over the channel. The value will be used as the next answer.
Return value
Returns a guard that will automatically check that the value has been used when going out of scope.
sourcepub fn send_all(
&mut self,
values: impl IntoIterator<Item = V>
) -> AnswersGuard<'_, V>
pub fn send_all(
&mut self,
values: impl IntoIterator<Item = V>
) -> AnswersGuard<'_, V>
Sends several values over the channel. The values will be used as answers in the same order as returned by the iterator.
Return value
Returns a guard that will automatically check that all the values have been used when going out of scope.
Trait Implementations
Auto Trait Implementations
impl<V> !RefUnwindSafe for AnswersSender<V>
impl<V> Send for AnswersSender<V>where
V: Send,
impl<V> Sync for AnswersSender<V>where
V: Send,
impl<V> Unpin for AnswersSender<V>
impl<V> !UnwindSafe for AnswersSender<V>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more