Trait iroh_blobs::provider::CustomEventSender

source ·
pub trait CustomEventSender: Debug + Sync + Send + 'static {
    // Required methods
    fn send(&self, event: Event) -> BoxFuture<()>;
    fn try_send(&self, event: Event);
}
Expand description

Trait for sending blob events.

Required Methods§

source

fn send(&self, event: Event) -> BoxFuture<()>

Send an event and wait for it to be sent.

source

fn try_send(&self, event: Event)

Try to send an event.

Implementors§