pub trait CancellableExt: 'static {
    // Required methods
    fn cancel(&self);
    fn disconnect(&self, handler_id: c_ulong);
    fn 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 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

Implementors§