Struct muxrpc::CancelSource [] [src]

pub struct CancelSource<W: AsyncWrite>(_);

This future can be used to signal to the peer that you are no longer interested in receiving more values from this source.

Note that if you don't poll this future, you must use the close method instead (otherwise, there might be unclosed sinks under the hood).

Methods

impl<W: AsyncWrite> CancelSource<W>
[src]

[src]

Close this CancelSource. If it has not been run as a future, you must instead run the future returned from this method.

Trait Implementations

impl<W: AsyncWrite> Future for CancelSource<W>
[src]

A successful value

An error

[src]

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

impl<W> !Send for CancelSource<W>

impl<W> !Sync for CancelSource<W>