pub struct Config { /* private fields */ }
Expand description
Config
is an insecure connection handshake for testing purposes only.
Implementations§
Trait Implementations§
Source§impl<C> InboundConnectionUpgrade<C> for Config
impl<C> InboundConnectionUpgrade<C> for Config
Source§type Output = (PeerId, Output<C>)
type Output = (PeerId, Output<C>)
Output after the upgrade has been successfully negotiated and the handshake performed.
Source§type Future = Pin<Box<dyn Future<Output = Result<<Config as InboundConnectionUpgrade<C>>::Output, <Config as InboundConnectionUpgrade<C>>::Error>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<<Config as InboundConnectionUpgrade<C>>::Output, <Config as InboundConnectionUpgrade<C>>::Error>> + Send>>
Future that performs the handshake with the remote.
Source§fn upgrade_inbound(self, socket: C, _: Self::Info) -> Self::Future
fn upgrade_inbound(self, socket: C, _: Self::Info) -> Self::Future
After we have determined that the remote supports one of the protocols we support, this
method is called to start the handshake. Read more
Source§impl<C> OutboundConnectionUpgrade<C> for Config
impl<C> OutboundConnectionUpgrade<C> for Config
Source§type Output = (PeerId, Output<C>)
type Output = (PeerId, Output<C>)
Output after the upgrade has been successfully negotiated and the handshake performed.
Source§type Future = Pin<Box<dyn Future<Output = Result<<Config as OutboundConnectionUpgrade<C>>::Output, <Config as OutboundConnectionUpgrade<C>>::Error>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<<Config as OutboundConnectionUpgrade<C>>::Output, <Config as OutboundConnectionUpgrade<C>>::Error>> + Send>>
Future that performs the handshake with the remote.
Source§fn upgrade_outbound(self, socket: C, _: Self::Info) -> Self::Future
fn upgrade_outbound(self, socket: C, _: Self::Info) -> Self::Future
After we have determined that the remote supports one of the protocols we support, this
method is called to start the handshake. Read more
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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