[][src]Struct libp2p::floodsub::protocol::FloodsubRpc

pub struct FloodsubRpc {
    pub messages: Vec<FloodsubMessage>,
    pub subscriptions: Vec<FloodsubSubscription>,
}

An RPC received by the floodsub system.

Fields

messages: Vec<FloodsubMessage>

List of messages that were part of this RPC query.

subscriptions: Vec<FloodsubSubscription>

List of subscriptions.

Trait Implementations

impl PartialEq<FloodsubRpc> for FloodsubRpc[src]

impl Hash for FloodsubRpc[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl<TSocket> OutboundUpgrade<TSocket> for FloodsubRpc where
    TSocket: AsyncWrite + AsyncRead
[src]

type Output = ()

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

type Error = Error

Possible error during the handshake.

type Future = WriteOne<Negotiated<TSocket>, Vec<u8>>

Future that performs the handshake with the remote.

impl Debug for FloodsubRpc[src]

impl UpgradeInfo for FloodsubRpc[src]

type Info = &'static [u8]

Opaque type representing a negotiable protocol.

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

Iterator returned by protocol_info.

impl Clone for FloodsubRpc[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Eq for FloodsubRpc[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<C, U> OutboundUpgradeExt<C> for U where
    U: OutboundUpgrade<C>, 
[src]

fn map_outbound<F, T>(self, f: F) -> MapOutboundUpgrade<Self, F> where
    F: FnOnce(Self::Output) -> T, 
[src]

Returns a new object that wraps around Self and applies a closure to the Output.

fn map_outbound_err<F, T>(self, f: F) -> MapOutboundUpgradeErr<Self, F> where
    F: FnOnce(Self::Error) -> T, 
[src]

Returns a new object that wraps around Self and applies a closure to the Error.

impl<T> Erased for T

impl<T> Erased for T