pub trait GenericTransferHandle: Send {
    // Required method
    fn cancel(&self) -> Result<()>;
}
Expand description

Generic transfer handle is a generic handle that allows for cancellation of in-flight transfers. It should be implemented by all backends that need to be plugged into a generic BackendTransferHandle structure.

Required Methods§

source

fn cancel(&self) -> Result<()>

All objects that implement this method need to make sure cancel() is safe to call multiple times as its invocation should be idempotent. A transfer that has already been canceled ought not to error if it gets canceled again.

Implementations on Foreign Types§

source§

impl GenericTransferHandle for TransferHandle

source§

fn cancel(&self) -> Result<()>

Implementors§