pub trait Connection: ErrorType {
    type Event<'a>: Event
       where Self: 'a;

    // Required method
    async fn next(&mut self) -> Result<Self::Event<'_>, Self::Error>;
}

Required Associated Types§

source

type Event<'a>: Event where Self: 'a

Required Methods§

source

async fn next(&mut self) -> Result<Self::Event<'_>, Self::Error>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<C> Connection for &mut C
where C: Connection,

§

type Event<'a> = <C as Connection>::Event<'a> where Self: 'a

source§

async fn next(&mut self) -> Result<Self::Event<'_>, Self::Error>

Implementors§