Trait UnauthEth

Source
pub trait UnauthEth:
    Stream<Item = Result<BytesMut, P2PStreamError>>
    + Sink<Bytes, Error = P2PStreamError>
    + CanDisconnect<Bytes>
    + Unpin
    + Send { }
Expand description

An unauthenticated stream that can send and receive messages.

Implementors§

Source§

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