Skip to main content

ContextExt

Trait ContextExt 

Source
pub trait ContextExt {
    // Required methods
    fn set_errno<'life0, 'async_trait>(
        &'life0 mut self,
        code: i32,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn errno_address<'life0, 'async_trait>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = u32> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn set_errno<'life0, 'async_trait>( &'life0 mut self, code: i32, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Sets the task’s errno value to the given code.

Source

fn errno_address<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = u32> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§

Source§

impl<T> ContextExt for T
where T: AsContextMut<Data = Host> + Sync + Send,