Struct mimicry::AnswersSender

source ·
pub struct AnswersSender<V> { /* private fields */ }
Expand description

Sender part of a channel created by Answers::channel().

Examples

See Answers for examples of usage.

Implementations

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.

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

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.