pub struct NetworkOutbound {
pub result_id: ResultId,
pub payload: NetworkPayload,
}Expand description
The type that the network sender receives
Fields§
§result_id: ResultIdThe operation ID that generated this message
payload: NetworkPayloadThe body of the message
Trait Implementations§
Source§impl Clone for NetworkOutbound
impl Clone for NetworkOutbound
Source§fn clone(&self) -> NetworkOutbound
fn clone(&self) -> NetworkOutbound
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 NetworkOutbound
impl Debug for NetworkOutbound
Source§impl<'de> Deserialize<'de> for NetworkOutbound
impl<'de> Deserialize<'de> for NetworkOutbound
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 Serialize for NetworkOutbound
impl Serialize for NetworkOutbound
Source§impl Sink<NetworkOutbound> for QuicTwoPartyNet
impl Sink<NetworkOutbound> for QuicTwoPartyNet
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,
) -> Result<(), Self::Error>
fn start_send( self: Pin<&mut Self>, msg: NetworkOutbound, ) -> 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 Freeze for NetworkOutbound
impl RefUnwindSafe for NetworkOutbound
impl Send for NetworkOutbound
impl Sync for NetworkOutbound
impl Unpin for NetworkOutbound
impl UnwindSafe for NetworkOutbound
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