Struct ipfs_embed::config::BroadcastConfig
source · pub struct BroadcastConfig { /* private fields */ }
Trait Implementations§
source§impl Clone for BroadcastConfig
impl Clone for BroadcastConfig
source§fn clone(&self) -> BroadcastConfig
fn clone(&self) -> BroadcastConfig
Returns a copy 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 moresource§impl Debug for BroadcastConfig
impl Debug for BroadcastConfig
source§impl Default for BroadcastConfig
impl Default for BroadcastConfig
source§fn default() -> BroadcastConfig
fn default() -> BroadcastConfig
Returns the “default value” for a type. Read more
source§impl<TSocket> InboundUpgrade<TSocket> for BroadcastConfigwhere
TSocket: 'static + AsyncRead + AsyncWrite + Send + Unpin,
impl<TSocket> InboundUpgrade<TSocket> for BroadcastConfigwhere
TSocket: 'static + AsyncRead + AsyncWrite + Send + Unpin,
§type Output = Message
type Output = Message
Output after the upgrade has been successfully negotiated and the handshake performed.
§type Future = Pin<Box<dyn Future<Output = Result<<BroadcastConfig as InboundUpgrade<TSocket>>::Output, Error>> + Send + 'static, Global>>
type Future = Pin<Box<dyn Future<Output = Result<<BroadcastConfig as InboundUpgrade<TSocket>>::Output, Error>> + Send + 'static, Global>>
Future that performs the handshake with the remote.
source§fn upgrade_inbound(
self,
socket: TSocket,
_info: <BroadcastConfig as UpgradeInfo>::Info
) -> <BroadcastConfig as InboundUpgrade<TSocket>>::Future
fn upgrade_inbound(
self,
socket: TSocket,
_info: <BroadcastConfig as UpgradeInfo>::Info
) -> <BroadcastConfig as InboundUpgrade<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
source§impl UpgradeInfo for BroadcastConfig
impl UpgradeInfo for BroadcastConfig
§type InfoIter = Once<<BroadcastConfig as UpgradeInfo>::Info>
type InfoIter = Once<<BroadcastConfig as UpgradeInfo>::Info>
Iterator returned by
protocol_info
.source§fn protocol_info(&self) -> <BroadcastConfig as UpgradeInfo>::InfoIter
fn protocol_info(&self) -> <BroadcastConfig as UpgradeInfo>::InfoIter
Returns the list of protocols that are supported. Used during the negotiation process.
Auto Trait Implementations§
impl RefUnwindSafe for BroadcastConfig
impl Send for BroadcastConfig
impl Sync for BroadcastConfig
impl Unpin for BroadcastConfig
impl UnwindSafe for BroadcastConfig
Blanket Implementations§
§impl<C, U> InboundUpgradeExt<C> for Uwhere
U: InboundUpgrade<C>,
impl<C, U> InboundUpgradeExt<C> for Uwhere
U: InboundUpgrade<C>,
§fn map_inbound<F, T>(self, f: F) -> MapInboundUpgrade<Self, F>where
Self: Sized,
F: FnOnce(Self::Output) -> T,
fn map_inbound<F, T>(self, f: F) -> MapInboundUpgrade<Self, F>where
Self: Sized,
F: FnOnce(Self::Output) -> T,
Returns a new object that wraps around
Self
and applies a closure to the Output
.§fn map_inbound_err<F, T>(self, f: F) -> MapInboundUpgradeErr<Self, F>where
Self: Sized,
F: FnOnce(Self::Error) -> T,
fn map_inbound_err<F, T>(self, f: F) -> MapInboundUpgradeErr<Self, F>where
Self: Sized,
F: FnOnce(Self::Error) -> T,
Returns a new object that wraps around
Self
and applies a closure to the Error
.