pub struct EthereumEthHandshake<'a, S: ?Sized>(pub &'a mut S);Expand description
A type that performs the ethereum specific eth protocol handshake.
Tuple Fields§
§0: &'a mut SImplementations§
Source§impl<S, E> EthereumEthHandshake<'_, S>where
S: ?Sized + Stream<Item = Result<BytesMut, E>> + CanDisconnect<Bytes> + Send,
EthStreamError: From<E> + From<<S as Sink<Bytes>>::Error>,
impl<S, E> EthereumEthHandshake<'_, S>where
S: ?Sized + Stream<Item = Result<BytesMut, E>> + CanDisconnect<Bytes> + Send,
EthStreamError: From<E> + From<<S as Sink<Bytes>>::Error>,
Sourcepub async fn eth_handshake(
self,
unified_status: UnifiedStatus,
fork_filter: ForkFilter,
) -> Result<UnifiedStatus, EthStreamError>
pub async fn eth_handshake( self, unified_status: UnifiedStatus, fork_filter: ForkFilter, ) -> Result<UnifiedStatus, EthStreamError>
Performs the eth rlpx protocol handshake using the given input stream.
Trait Implementations§
Auto Trait Implementations§
impl<'a, S> !UnwindSafe for EthereumEthHandshake<'a, S>
impl<'a, S> Freeze for EthereumEthHandshake<'a, S>
impl<'a, S> RefUnwindSafe for EthereumEthHandshake<'a, S>
impl<'a, S> Send for EthereumEthHandshake<'a, S>
impl<'a, S> Sync for EthereumEthHandshake<'a, S>
impl<'a, S> Unpin for EthereumEthHandshake<'a, S>
impl<'a, S> UnsafeUnpin for EthereumEthHandshake<'a, S>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.