pub fn is_canceled(&self) -> bool {
        match self {
            Canceled => true,
            _ => false,
        }
    }
/// Returns `true` if current task has been canceled.
Returns `true` if current task has been canceled.
Returns ` true ` if current task has been canceled .
pub fn is_canceled(&self) -> bool {
        match self {
            Canceled => true,
            _ => false,
        }
    }
pub fn is_canceled ( & self ) -> bool { match self { Canceled => true , _ => false , } }
Returns `true` if current task has been canceled.
Returns ` true ` if current task has been canceled .
&self
&self