Struct ipfs_embed::config::BroadcastConfig
source · [−]pub struct BroadcastConfig { /* private fields */ }Trait Implementations
sourceimpl Clone for BroadcastConfig
impl Clone for BroadcastConfig
sourcefn clone(&self) -> BroadcastConfig
fn clone(&self) -> BroadcastConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for BroadcastConfig
impl Debug for BroadcastConfig
sourceimpl Default for BroadcastConfig
impl Default for BroadcastConfig
sourcefn default() -> BroadcastConfig
fn default() -> BroadcastConfig
Returns the “default value” for a type. Read more
sourceimpl<TSocket> InboundUpgrade<TSocket> for BroadcastConfig where
TSocket: 'static + AsyncRead + AsyncWrite + Send + Unpin,
impl<TSocket> InboundUpgrade<TSocket> for BroadcastConfig where
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.
sourcefn 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
sourceimpl UpgradeInfo for BroadcastConfig
impl UpgradeInfo for BroadcastConfig
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.
sourcefn 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<C, U> InboundUpgradeExt<C> for U where
U: InboundUpgrade<C>,
impl<C, U> InboundUpgradeExt<C> for U where
U: InboundUpgrade<C>,
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.
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more