Skip to main content

Cancellable

Trait Cancellable 

Source
pub trait Cancellable {
    // Required method
    fn cancel(&mut self);
}
Expand description

A trait for objects that can be cancelled.

Required Methods§

Source

fn cancel(&mut self)

Cancel the object.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§