Struct ipfs_embed::BroadcastConfig [−][src]
pub struct BroadcastConfig { /* fields omitted */ }
Trait Implementations
Returns the “default value” for a type. Read more
impl<TSocket> InboundUpgrade<TSocket> for BroadcastConfig where
TSocket: AsyncRead + AsyncWrite + Send + Unpin + 'static,
impl<TSocket> InboundUpgrade<TSocket> for BroadcastConfig where
TSocket: AsyncRead + AsyncWrite + Send + Unpin + 'static,
type Output = Message
type Output = Message
Output after the upgrade has been successfully negotiated and the handshake performed.
Future that performs the handshake with the remote.
pub fn upgrade_inbound(
self,
socket: TSocket,
_info: <BroadcastConfig as UpgradeInfo>::Info
) -> <BroadcastConfig as InboundUpgrade<TSocket>>::Future
pub 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
type Info = &'static [u8]
type Info = &'static [u8]
Opaque type representing a negotiable protocol.
type InfoIter = Once<<BroadcastConfig as UpgradeInfo>::Info>
type InfoIter = Once<<BroadcastConfig as UpgradeInfo>::Info>
Iterator returned by protocol_info
.
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
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Mutably borrows from an owned value. Read more
pub fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
pub fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer
fn map_inbound<F, T>(self, f: F) -> MapInboundUpgrade<Self, F> where
F: FnOnce(Self::Output) -> T,
fn map_inbound<F, T>(self, f: F) -> MapInboundUpgrade<Self, F> where
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
F: FnOnce(Self::Error) -> T,
fn map_inbound_err<F, T>(self, f: F) -> MapInboundUpgradeErr<Self, F> where
F: FnOnce(Self::Error) -> T,
Returns a new object that wraps around Self
and applies a closure to the Error
.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V