pub struct NetworkOutbound<C: CurveGroup> {
pub result_id: ResultId,
pub payload: NetworkPayload<C>,
}Expand description
The type that the network sender receives
Fields§
§result_id: ResultIdThe operation ID that generated this message
payload: NetworkPayload<C>The body of the message
Trait Implementations§
Source§impl<C: Clone + CurveGroup> Clone for NetworkOutbound<C>
impl<C: Clone + CurveGroup> Clone for NetworkOutbound<C>
Source§fn clone(&self) -> NetworkOutbound<C>
fn clone(&self) -> NetworkOutbound<C>
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<C: Debug + CurveGroup> Debug for NetworkOutbound<C>
impl<C: Debug + CurveGroup> Debug for NetworkOutbound<C>
Source§impl<'de, C> Deserialize<'de> for NetworkOutbound<C>where
C: CurveGroup,
impl<'de, C> Deserialize<'de> for NetworkOutbound<C>where
C: CurveGroup,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<C> Serialize for NetworkOutbound<C>where
C: CurveGroup,
impl<C> Serialize for NetworkOutbound<C>where
C: CurveGroup,
Source§impl<C> Sink<NetworkOutbound<C>> for QuicTwoPartyNet<C>where
C: Unpin + CurveGroup,
impl<C> Sink<NetworkOutbound<C>> for QuicTwoPartyNet<C>where
C: Unpin + CurveGroup,
Source§type Error = MpcNetworkError
type Error = MpcNetworkError
The type of value produced by the sink when an error occurs.
Source§fn start_send(
self: Pin<&mut Self>,
msg: NetworkOutbound<C>,
) -> Result<(), Self::Error>
fn start_send( self: Pin<&mut Self>, msg: NetworkOutbound<C>, ) -> Result<(), Self::Error>
Begin the process of sending a value to the sink.
Each call to this function must be preceded by a successful call to
poll_ready which returned Poll::Ready(Ok(())). Read moreSource§fn poll_flush(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<Result<(), Self::Error>>
fn poll_flush( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<(), Self::Error>>
Flush any remaining output from this sink. Read more
Auto Trait Implementations§
impl<C> Freeze for NetworkOutbound<C>
impl<C> RefUnwindSafe for NetworkOutbound<C>
impl<C> Send for NetworkOutbound<C>
impl<C> Sync for NetworkOutbound<C>
impl<C> Unpin for NetworkOutbound<C>
impl<C> UnwindSafe for NetworkOutbound<C>
Blanket Implementations§
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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