libp2p_deflate

Struct DeflateConfig

Source
pub struct DeflateConfig { /* private fields */ }
๐Ÿ‘ŽDeprecated: Will be removed in the next release, see https://github.com/libp2p/rust-libp2p/issues/4522 for details.

Trait Implementationsยง

Sourceยง

impl Clone for DeflateConfig

Sourceยง

fn clone(&self) -> DeflateConfig

Returns a copy of the value. Read more
1.0.0 ยท Sourceยง

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Sourceยง

impl Debug for DeflateConfig

Sourceยง

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Sourceยง

impl Default for DeflateConfig

Sourceยง

fn default() -> Self

Returns the โ€œdefault valueโ€ for a type. Read more
Sourceยง

impl<C> InboundUpgrade<C> for DeflateConfig
where C: AsyncRead + AsyncWrite,

Sourceยง

type Output = DeflateOutput<C>

Output after the upgrade has been successfully negotiated and the handshake performed.
Sourceยง

type Error = Error

Possible error during the handshake.
Sourceยง

type Future = Ready<Result<<DeflateConfig as InboundUpgrade<C>>::Output, <DeflateConfig as InboundUpgrade<C>>::Error>>

Future that performs the handshake with the remote.
Sourceยง

fn upgrade_inbound(self, r: 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> OutboundUpgrade<C> for DeflateConfig
where C: AsyncRead + AsyncWrite,

Sourceยง

type Output = DeflateOutput<C>

Output after the upgrade has been successfully negotiated and the handshake performed.
Sourceยง

type Error = Error

Possible error during the handshake.
Sourceยง

type Future = Ready<Result<<DeflateConfig as OutboundUpgrade<C>>::Output, <DeflateConfig as OutboundUpgrade<C>>::Error>>

Future that performs the handshake with the remote.
Sourceยง

fn upgrade_outbound(self, w: 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 UpgradeInfo for DeflateConfig

Sourceยง

type Info = &'static str

Opaque type representing a negotiable protocol.
Sourceยง

type InfoIter = Once<<DeflateConfig as UpgradeInfo>::Info>

Iterator returned by protocol_info.
Sourceยง

fn protocol_info(&self) -> Self::InfoIter

Returns the list of protocols that are supported. Used during the negotiation process.
Sourceยง

impl Copy for DeflateConfig

Auto Trait Implementationsยง

Blanket Implementationsยง

Sourceยง

impl<T> Any for T
where T: 'static + ?Sized,

Sourceยง

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Sourceยง

impl<T> Borrow<T> for T
where T: ?Sized,

Sourceยง

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Sourceยง

impl<T> BorrowMut<T> for T
where T: ?Sized,

Sourceยง

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Sourceยง

impl<T> CloneToUninit for T
where T: Clone,

Sourceยง

unsafe fn clone_to_uninit(&self, dst: *mut u8)

๐Ÿ”ฌThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Sourceยง

impl<T> From<T> for T

Sourceยง

fn from(t: T) -> T

Returns the argument unchanged.

Sourceยง

impl<U, T> InboundConnectionUpgrade<T> for U
where U: InboundUpgrade<T>,

Sourceยง

type Output = <U as InboundUpgrade<T>>::Output

Output after the upgrade has been successfully negotiated and the handshake performed.
Sourceยง

type Error = <U as InboundUpgrade<T>>::Error

Possible error during the handshake.
Sourceยง

type Future = <U as InboundUpgrade<T>>::Future

Future that performs the handshake with the remote.
Sourceยง

fn upgrade_inbound( self, socket: T, info: <U as UpgradeInfo>::Info, ) -> <U as InboundConnectionUpgrade<T>>::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<T> Instrument for T

Sourceยง

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Sourceยง

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Sourceยง

impl<T, U> Into<U> for T
where U: From<T>,

Sourceยง

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Sourceยง

impl<T> IntoEither for T

Sourceยง

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 more
Sourceยง

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Sourceยง

impl<U, T> OutboundConnectionUpgrade<T> for U
where U: OutboundUpgrade<T>,

Sourceยง

type Output = <U as OutboundUpgrade<T>>::Output

Output after the upgrade has been successfully negotiated and the handshake performed.
Sourceยง

type Error = <U as OutboundUpgrade<T>>::Error

Possible error during the handshake.
Sourceยง

type Future = <U as OutboundUpgrade<T>>::Future

Future that performs the handshake with the remote.
Sourceยง

fn upgrade_outbound( self, socket: T, info: <U as UpgradeInfo>::Info, ) -> <U as OutboundConnectionUpgrade<T>>::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<T> Same for T

Sourceยง

type Output = T

Should always be Self
Sourceยง

impl<T> ToOwned for T
where T: Clone,

Sourceยง

type Owned = T

The resulting type after obtaining ownership.
Sourceยง

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Sourceยง

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Sourceยง

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Sourceยง

type Error = Infallible

The type returned in the event of a conversion error.
Sourceยง

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Sourceยง

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Sourceยง

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Sourceยง

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Sourceยง

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Sourceยง

fn vzip(self) -> V

Sourceยง

impl<T> WithSubscriber for T

Sourceยง

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Sourceยง

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Sourceยง

impl<T> ErasedDestructor for T
where T: 'static,

Sourceยง

impl<T> MaybeSendSync for T