pub struct InboundChat {
pub acks: Vec<OutFrame>,
pub delivered: Option<RelayEnvelope>,
pub decode_failed: bool,
}Expand description
The result of feeding one inbound frame to the bridge.
Fields§
§acks: Vec<OutFrame>Acknowledgement frames to send back to the peer.
delivered: Option<RelayEnvelope>A newly-delivered chat envelope, if this frame completed one (absent for ACKs and duplicates).
decode_failed: boolTrue if a frame arrived but could not be decoded as a chat envelope (corrupt / wrong version).
Trait Implementations§
Source§impl Debug for InboundChat
impl Debug for InboundChat
Source§impl Default for InboundChat
impl Default for InboundChat
Source§fn default() -> InboundChat
fn default() -> InboundChat
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for InboundChat
impl RefUnwindSafe for InboundChat
impl Send for InboundChat
impl Sync for InboundChat
impl Unpin for InboundChat
impl UnsafeUnpin for InboundChat
impl UnwindSafe for InboundChat
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.