pub trait DhtOpSender {
    // Required methods
    fn send_op<'life0, 'async_trait>(
        &'life0 self,
        op: DhtOp
    ) -> Pin<Box<dyn Future<Output = SysValidationResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn send_store_record<'life0, 'async_trait>(
        &'life0 self,
        record: Record
    ) -> Pin<Box<dyn Future<Output = SysValidationResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn send_store_entry<'life0, 'async_trait>(
        &'life0 self,
        record: Record
    ) -> Pin<Box<dyn Future<Output = SysValidationResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn send_register_add_link<'life0, 'async_trait>(
        &'life0 self,
        record: Record
    ) -> Pin<Box<dyn Future<Output = SysValidationResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn send_register_agent_activity<'life0, 'async_trait>(
        &'life0 self,
        record: Record
    ) -> Pin<Box<dyn Future<Output = SysValidationResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Allows DhtOps to be sent to some receiver

Required Methods§

source

fn send_op<'life0, 'async_trait>( &'life0 self, op: DhtOp ) -> Pin<Box<dyn Future<Output = SysValidationResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Sends an op

source

fn send_store_record<'life0, 'async_trait>( &'life0 self, record: Record ) -> Pin<Box<dyn Future<Output = SysValidationResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Send a StoreRecord DhtOp

source

fn send_store_entry<'life0, 'async_trait>( &'life0 self, record: Record ) -> Pin<Box<dyn Future<Output = SysValidationResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Send a StoreEntry DhtOp

Send a RegisterAddLink DhtOp

source

fn send_register_agent_activity<'life0, 'async_trait>( &'life0 self, record: Record ) -> Pin<Box<dyn Future<Output = SysValidationResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Send a RegisterAgentActivity DhtOp

Implementors§