Function ctx::with_deadline [] [src]

pub fn with_deadline<C>(parent: C,
                        deadline: Instant)
                        -> (WithDeadline<C>, Box<Fn() + Send>) where C: Context

Returns with_timeout(parent, deadline - Instant::now()).