pub struct MissingMessageReference;Expand description
Adds the missing message reference to the bank’s HNHBK.
Misbehaviour: some banks, typically in error answers, send
HNHBK:1:3+size+version+dialog+msgnum without the sixth DEG, the
reference dialog:msgnum to the client message being answered. The spec
makes it mandatory for bank messages.
Repair: when the head has exactly five DEGs, append +dialog:msgnum with
the dialog ID and message number of the request from the
QuirkContext. A present but empty reference is left alone. The head
is split into DEGs by the wire helpers, so an escaped + is not a
separator; a head with fewer than five DEGs is too broken to guess at and
stays as it is.
Trait Implementations§
Source§impl Clone for MissingMessageReference
impl Clone for MissingMessageReference
impl Copy for MissingMessageReference
Source§impl Debug for MissingMessageReference
impl Debug for MissingMessageReference
Source§impl Default for MissingMessageReference
impl Default for MissingMessageReference
Source§impl Quirk for MissingMessageReference
impl Quirk for MissingMessageReference
Source§fn incoming_raw<'a>(
&self,
msg: &'a [u8],
ctx: &QuirkContext<'_>,
) -> Cow<'a, [u8]>
fn incoming_raw<'a>( &self, msg: &'a [u8], ctx: &QuirkContext<'_>, ) -> Cow<'a, [u8]>
Repair an answer as it arrived, envelope included.
Auto Trait Implementations§
impl Forget for MissingMessageReference
impl Freeze for MissingMessageReference
impl Move for MissingMessageReference
impl RefUnwindSafe for MissingMessageReference
impl Send for MissingMessageReference
impl Sync for MissingMessageReference
impl Unpin for MissingMessageReference
impl UnsafeUnpin for MissingMessageReference
impl UnwindSafe for MissingMessageReference
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