Struct FloodsubRpc  
pub struct FloodsubRpc {
    pub messages: Vec<FloodsubMessage>,
    pub subscriptions: Vec<FloodsubSubscription>,
}Available on crate feature 
floodsub only.Expand description
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 Clone for FloodsubRpc
 
impl Clone for FloodsubRpc
§fn clone(&self) -> FloodsubRpc
 
fn clone(&self) -> FloodsubRpc
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read more§impl Debug for FloodsubRpc
 
impl Debug for FloodsubRpc
§impl Hash for FloodsubRpc
 
impl Hash for FloodsubRpc
§impl<TSocket> OutboundUpgrade<TSocket> for FloodsubRpc
 
impl<TSocket> OutboundUpgrade<TSocket> for FloodsubRpc
§type Output = ()
 
type Output = ()
Output after the upgrade has been successfully negotiated and the handshake performed.
§type Error = CodecError
 
type Error = CodecError
Possible error during the handshake.
§type Future = Pin<Box<dyn Future<Output = Result<<FloodsubRpc as OutboundUpgrade<TSocket>>::Output, <FloodsubRpc as OutboundUpgrade<TSocket>>::Error>> + Send>>
 
type Future = Pin<Box<dyn Future<Output = Result<<FloodsubRpc as OutboundUpgrade<TSocket>>::Output, <FloodsubRpc as OutboundUpgrade<TSocket>>::Error>> + Send>>
Future that performs the handshake with the remote.
§fn upgrade_outbound(
    self,
    socket: TSocket,
    _: <FloodsubRpc as UpgradeInfo>::Info,
) -> <FloodsubRpc as OutboundUpgrade<TSocket>>::Future
 
fn upgrade_outbound( self, socket: TSocket, _: <FloodsubRpc as UpgradeInfo>::Info, ) -> <FloodsubRpc as OutboundUpgrade<TSocket>>::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
§impl PartialEq for FloodsubRpc
 
impl PartialEq for FloodsubRpc
§impl UpgradeInfo for FloodsubRpc
 
impl UpgradeInfo for FloodsubRpc
§type Info = StreamProtocol
 
type Info = StreamProtocol
Opaque type representing a negotiable protocol.
§type InfoIter = Once<<FloodsubRpc as UpgradeInfo>::Info>
 
type InfoIter = Once<<FloodsubRpc as UpgradeInfo>::Info>
Iterator returned by 
protocol_info.§fn protocol_info(&self) -> <FloodsubRpc as UpgradeInfo>::InfoIter
 
fn protocol_info(&self) -> <FloodsubRpc as UpgradeInfo>::InfoIter
Returns the list of protocols that are supported. Used during the negotiation process.
impl Eq for FloodsubRpc
impl StructuralPartialEq for FloodsubRpc
Auto Trait Implementations§
impl Freeze for FloodsubRpc
impl RefUnwindSafe for FloodsubRpc
impl Send for FloodsubRpc
impl Sync for FloodsubRpc
impl Unpin for FloodsubRpc
impl UnwindSafe for FloodsubRpc
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
    T: 'a,
 
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
    T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
    T: 'a,
 
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
    T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
    T: 'a,
 
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
    T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
    T: 'a,
 
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
    T: 'a,
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<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.§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, TInfo> OutboundUpgradeSend for Twhere
    T: OutboundUpgrade<Stream, Info = TInfo> + UpgradeInfoSend<Info = TInfo>,
    TInfo: AsRef<str> + Clone + Send + 'static,
    <T as OutboundUpgrade<Stream>>::Output: Send + 'static,
    <T as OutboundUpgrade<Stream>>::Error: Send + 'static,
    <T as OutboundUpgrade<Stream>>::Future: Send + 'static,
 
impl<T, TInfo> OutboundUpgradeSend for Twhere
    T: OutboundUpgrade<Stream, Info = TInfo> + UpgradeInfoSend<Info = TInfo>,
    TInfo: AsRef<str> + Clone + Send + 'static,
    <T as OutboundUpgrade<Stream>>::Output: Send + 'static,
    <T as OutboundUpgrade<Stream>>::Error: Send + 'static,
    <T as OutboundUpgrade<Stream>>::Future: Send + 'static,
§type Output = <T as OutboundUpgrade<Stream>>::Output
 
type Output = <T as OutboundUpgrade<Stream>>::Output
Equivalent to 
OutboundUpgrade::Output.§type Error = <T as OutboundUpgrade<Stream>>::Error
 
type Error = <T as OutboundUpgrade<Stream>>::Error
Equivalent to 
OutboundUpgrade::Error.§type Future = <T as OutboundUpgrade<Stream>>::Future
 
type Future = <T as OutboundUpgrade<Stream>>::Future
Equivalent to 
OutboundUpgrade::Future.§fn upgrade_outbound(
    self,
    socket: Stream,
    info: TInfo,
) -> <T as OutboundUpgradeSend>::Future
 
fn upgrade_outbound( self, socket: Stream, info: TInfo, ) -> <T as OutboundUpgradeSend>::Future
Equivalent to
OutboundUpgrade::upgrade_outbound.§impl<T> Pointable for T
 
impl<T> Pointable for T
§impl<T> UpgradeInfoSend for Twhere
    T: UpgradeInfo + Send + 'static,
    <T as UpgradeInfo>::Info: Send + 'static,
    <<T as UpgradeInfo>::InfoIter as IntoIterator>::IntoIter: Send + 'static,
 
impl<T> UpgradeInfoSend for Twhere
    T: UpgradeInfo + Send + 'static,
    <T as UpgradeInfo>::Info: Send + 'static,
    <<T as UpgradeInfo>::InfoIter as IntoIterator>::IntoIter: Send + 'static,
§type Info = <T as UpgradeInfo>::Info
 
type Info = <T as UpgradeInfo>::Info
Equivalent to 
UpgradeInfo::Info.§type InfoIter = <<T as UpgradeInfo>::InfoIter as IntoIterator>::IntoIter
 
type InfoIter = <<T as UpgradeInfo>::InfoIter as IntoIterator>::IntoIter
Equivalent to 
UpgradeInfo::InfoIter.§fn protocol_info(&self) -> <T as UpgradeInfoSend>::InfoIter
 
fn protocol_info(&self) -> <T as UpgradeInfoSend>::InfoIter
Equivalent to 
UpgradeInfo::protocol_info.