pub struct SendMany<M, D, R> { /* private fields */ }Expand description
Returned by MpcParty::send_many()
Trait Implementations§
Source§impl<M, D, E, AsyncR> SendMany for SendMany<M, D, AsyncR>where
M: ProtocolMsg + 'static,
D: Stream<Item = Result<Incoming<M>, E>> + Unpin + Sink<Outgoing<M>, Error = E>,
AsyncR: AsyncRuntime,
impl<M, D, E, AsyncR> SendMany for SendMany<M, D, AsyncR>where
M: ProtocolMsg + 'static,
D: Stream<Item = Result<Incoming<M>, E>> + Unpin + Sink<Outgoing<M>, Error = E>,
AsyncR: AsyncRuntime,
Source§type SendErr = <MpcParty<M, D, AsyncR> as Mpc>::SendErr
type SendErr = <MpcParty<M, D, AsyncR> as Mpc>::SendErr
Error indicating that sending a message has failed
Source§async fn send(&mut self, msg: Outgoing<Self::Msg>) -> Result<(), Self::SendErr>
async fn send(&mut self, msg: Outgoing<Self::Msg>) -> Result<(), Self::SendErr>
Adds a message to the sending queue Read more
Source§async fn flush(self) -> Result<Self::Exec, Self::SendErr>
async fn flush(self) -> Result<Self::Exec, Self::SendErr>
Flushes internal buffer by sending all messages in the queue
Source§async fn send_p2p(
&mut self,
recipient: PartyIndex,
msg: Self::Msg,
) -> Result<(), Self::SendErr>
async fn send_p2p( &mut self, recipient: PartyIndex, msg: Self::Msg, ) -> Result<(), Self::SendErr>
Adds a p2p message to the sending queue Read more
Auto Trait Implementations§
impl<M, D, R> Freeze for SendMany<M, D, R>
impl<M, D, R> !RefUnwindSafe for SendMany<M, D, R>
impl<M, D, R> !Send for SendMany<M, D, R>
impl<M, D, R> !Sync for SendMany<M, D, R>
impl<M, D, R> Unpin for SendMany<M, D, R>
impl<M, D, R> !UnwindSafe for SendMany<M, D, R>
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