pub struct CollectReply { /* private fields */ }
Available on crate feature collector only.

Implementations

Limits how many messages will attempt to be filtered.

The filter checks whether the message has been sent in the right guild, channel, and by the right author.

Sets a filter function where messages passed to the function must return true, otherwise the message won’t be collected and failed the filter process. This is the last instance to pass for a message to count as collected.

This function is intended to be a message content filter.

Sets the required author ID of a message. If a message does not meet this ID, it won’t be received.

Sets the required channel ID of a message. If a message does not meet this ID, it won’t be received.

Sets the required guild ID of a message. If a message does not meet this ID, it won’t be received.

Sets a duration for how long the collector shall receive messages.

Trait Implementations

The type of value produced on completion.

Attempt to resolve the future to a final value, registering the current task for wakeup if the value is not yet available. 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.

Map this future’s output to a different type, returning a new future of the resulting type. Read more

Map this future’s output to a different type, returning a new future of the resulting type. Read more

Chain on a computation for when a future finished, passing the result of the future to the provided closure f. Read more

Wrap this future in an Either future, making it the left-hand variant of that Either. Read more

Wrap this future in an Either future, making it the right-hand variant of that Either. Read more

Convert this future into a single element stream. Read more

Flatten the execution of this future when the output of this future is itself another future. Read more

Flatten the execution of this future when the successful result of this future is a stream. Read more

Fuse a future such that poll will never again be called once it has completed. This method can be used to turn any Future into a FusedFuture. Read more

Do something with the output of a future before passing it on. Read more

Available on crate feature std only.

Catches unwinding panics while polling the future. Read more

Available on crate feature std only.

Create a cloneable handle to this future where all handles will resolve to the same result. Read more

Available on crate features channel and std only.

Turn this future into a future that yields () on completion and sends its output to another future on a separate task. Read more

Available on crate feature alloc only.

Wrap the future in a Box, pinning it. Read more

Available on crate feature alloc only.

Wrap the future in a Box, pinning it. Read more

A convenience for calling Future::poll on Unpin future types.

Evaluates and consumes the future, returning the resulting output if the future is ready after the first call to Future::poll. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

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

🔬 This is a nightly-only experimental API. (into_future)

The output that the future will produce on completion.

🔬 This is a nightly-only experimental API. (into_future)

Which kind of future are we turning this into?

🔬 This is a nightly-only experimental API. (into_future)

Creates a future from a value.

Should always be Self

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more