Trait CancellableExt

Source
pub trait CancellableExt: 'static {
    // Required methods
    fn cancel(&self);
    fn disconnect(&self, handler_id: c_ulong);
    fn get_fd(&self) -> i32;
    fn is_cancelled(&self) -> bool;
    fn pop_current(&self);
    fn push_current(&self);
    fn release_fd(&self);
    fn set_error_if_cancelled(&self) -> Result<(), Error>;
    fn connect_cancelled<F: Fn(&Self) + Send + Sync + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId;
}

Required Methods§

Source

fn cancel(&self)

Source

fn disconnect(&self, handler_id: c_ulong)

Source

fn get_fd(&self) -> i32

Source

fn is_cancelled(&self) -> bool

Source

fn pop_current(&self)

Source

fn push_current(&self)

Source

fn release_fd(&self)

Source

fn set_error_if_cancelled(&self) -> Result<(), Error>

Source

fn connect_cancelled<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§