Skip to main content

Connection

Trait Connection 

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

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

Required Associated Types§

Source

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

Required Methods§

Source

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

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

Source§

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

Source§

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

Implementors§