Type Alias libp2p::core::Negotiated
source · pub type Negotiated<T> = Negotiated<T>;
Aliased Type§
struct Negotiated<T> { /* private fields */ }
Implementations
source§impl<TInner> Negotiated<TInner>
impl<TInner> Negotiated<TInner>
sourcepub fn complete(self) -> NegotiatedComplete<TInner> ⓘ
pub fn complete(self) -> NegotiatedComplete<TInner> ⓘ
Returns a NegotiatedComplete
future that waits for protocol
negotiation to complete.
Trait Implementations
source§impl<TInner> AsyncRead for Negotiated<TInner>
impl<TInner> AsyncRead for Negotiated<TInner>
source§impl<TInner> AsyncWrite for Negotiated<TInner>
impl<TInner> AsyncWrite for Negotiated<TInner>
source§fn poll_write(
self: Pin<&mut Negotiated<TInner>>,
cx: &mut Context<'_>,
buf: &[u8],
) -> Poll<Result<usize, Error>>
fn poll_write( self: Pin<&mut Negotiated<TInner>>, cx: &mut Context<'_>, buf: &[u8], ) -> Poll<Result<usize, Error>>
Attempt to write bytes from
buf
into the object. Read moresource§fn poll_flush(
self: Pin<&mut Negotiated<TInner>>,
cx: &mut Context<'_>,
) -> Poll<Result<(), Error>>
fn poll_flush( self: Pin<&mut Negotiated<TInner>>, cx: &mut Context<'_>, ) -> Poll<Result<(), Error>>
Attempt to flush the object, ensuring that any buffered data reach
their destination. Read more