Struct qaul_messaging::types::QaulMessagingData
source · [−]Fields
data: Vec<u8>
Trait Implementations
sourceimpl Clone for QaulMessagingData
impl Clone for QaulMessagingData
sourcefn clone(&self) -> QaulMessagingData
fn clone(&self) -> QaulMessagingData
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 QaulMessagingData
impl Debug for QaulMessagingData
sourceimpl From<QaulMessagingData> for InnerMessage
impl From<QaulMessagingData> for InnerMessage
sourcefn from(remote: QaulMessagingData) -> InnerMessage
fn from(remote: QaulMessagingData) -> InnerMessage
Converts to this type from the input type.
sourceimpl Hash for QaulMessagingData
impl Hash for QaulMessagingData
sourceimpl<TSocket> OutboundUpgrade<TSocket> for QaulMessagingData where
TSocket: AsyncWrite + AsyncRead + Send + Unpin + 'static,
impl<TSocket> OutboundUpgrade<TSocket> for QaulMessagingData where
TSocket: AsyncWrite + AsyncRead + Send + Unpin + 'static,
type Output = ()
type Output = ()
Output after the upgrade has been successfully negotiated and the handshake performed.
type Future = Pin<Box<dyn Future<Output = Result<<QaulMessagingData as OutboundUpgrade<TSocket>>::Output, <QaulMessagingData as OutboundUpgrade<TSocket>>::Error>> + Send + 'static, Global>>
type Future = Pin<Box<dyn Future<Output = Result<<QaulMessagingData as OutboundUpgrade<TSocket>>::Output, <QaulMessagingData as OutboundUpgrade<TSocket>>::Error>> + Send + 'static, Global>>
Future that performs the handshake with the remote.
sourcefn upgrade_outbound(self, substream: TSocket, _: Self::Info) -> Self::Future
fn upgrade_outbound(self, substream: TSocket, _: Self::Info) -> Self::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 PartialEq<QaulMessagingData> for QaulMessagingData
impl PartialEq<QaulMessagingData> for QaulMessagingData
sourcefn eq(&self, other: &QaulMessagingData) -> bool
fn eq(&self, other: &QaulMessagingData) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &QaulMessagingData) -> bool
fn ne(&self, other: &QaulMessagingData) -> bool
This method tests for !=
.
sourceimpl UpgradeInfo for QaulMessagingData
impl UpgradeInfo for QaulMessagingData
type InfoIter = Once<<QaulMessagingData as UpgradeInfo>::Info>
type InfoIter = Once<<QaulMessagingData as UpgradeInfo>::Info>
Iterator returned by protocol_info
.
sourcefn protocol_info(&self) -> Self::InfoIter
fn protocol_info(&self) -> Self::InfoIter
Returns the list of protocols that are supported. Used during the negotiation process.
impl Eq for QaulMessagingData
impl StructuralEq for QaulMessagingData
impl StructuralPartialEq for QaulMessagingData
Auto Trait Implementations
impl RefUnwindSafe for QaulMessagingData
impl Send for QaulMessagingData
impl Sync for QaulMessagingData
impl Unpin for QaulMessagingData
impl UnwindSafe for QaulMessagingData
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> OutboundUpgradeExt<C> for U where
U: OutboundUpgrade<C>,
impl<C, U> OutboundUpgradeExt<C> for U where
U: OutboundUpgrade<C>,
fn map_outbound<F, T>(self, f: F) -> MapOutboundUpgrade<Self, F> where
F: FnOnce(Self::Output) -> T,
fn map_outbound<F, T>(self, f: F) -> MapOutboundUpgrade<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_outbound_err<F, T>(self, f: F) -> MapOutboundUpgradeErr<Self, F> where
F: FnOnce(Self::Error) -> T,
fn map_outbound_err<F, T>(self, f: F) -> MapOutboundUpgradeErr<Self, F> where
F: FnOnce(Self::Error) -> T,
Returns a new object that wraps around Self
and applies a closure to the Error
.