UnauthEth

Trait UnauthEth 

pub trait UnauthEth:
    Stream<Item = Result<BytesMut, P2PStreamError>>
    + Sink<Bytes, Error = P2PStreamError>
    + CanDisconnect<Bytes>
    + Unpin
    + Send { }
Available on crate feature network only.
Expand description

An unauthenticated stream that can send and receive messages.

Implementors§

§

impl<T> UnauthEth for T
where T: Sink<Bytes, Error = P2PStreamError> + Stream<Item = Result<BytesMut, P2PStreamError>> + CanDisconnect<Bytes> + Unpin + Send,