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]
pub fn close(self) -> CloseCancelSource<W>
[src]
Close this CancelSource
. If it has not been run as a future, you must instead run the
future returned from this method.