pub struct RoundResult {
pub outgoing: Vec<Message>,
pub complete: bool,
}Expand description
Outcome of one SessionImpl::round call.
Fields§
§outgoing: Vec<Message>Messages to send for the next round.
complete: booltrue once the protocol is finished and SessionImpl::result
is ready to read.
Implementations§
Source§impl RoundResult
impl RoundResult
pub fn new(outgoing: Vec<Message>, complete: bool) -> RoundResult
Sourcepub fn done() -> RoundResult
pub fn done() -> RoundResult
Convenience: an empty result that signals the session is done.
Trait Implementations§
Source§impl Clone for RoundResult
impl Clone for RoundResult
Source§fn clone(&self) -> RoundResult
fn clone(&self) -> RoundResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RoundResult
impl Debug for RoundResult
Source§impl Default for RoundResult
impl Default for RoundResult
Source§fn default() -> RoundResult
fn default() -> RoundResult
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RoundResult
impl RefUnwindSafe for RoundResult
impl Send for RoundResult
impl Sync for RoundResult
impl Unpin for RoundResult
impl UnsafeUnpin for RoundResult
impl UnwindSafe for RoundResult
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