pub struct RejectError {
pub reason: SessionRejectReason,
pub ref_tag: Option<Tag>,
pub text: Option<String>,
pub is_garbled: bool,
}Expand description
A message failed validation and should be answered with a session-level Reject (35=3).
Displays as the bare reason text (the offending tag goes in RefTagID(371), not in Text(58), matching the reference engines).
Fields§
§reason: SessionRejectReason§ref_tag: Option<Tag>§text: Option<String>Overrides the standard reason text in Text(58) when set.
is_garbled: boolTrue when the offending message should NOT increment NextTargetMsgSeqNum (e.g. garbled messages per the spec are ignored, not rejected).
Implementations§
Source§impl RejectError
impl RejectError
Trait Implementations§
Source§impl Clone for RejectError
impl Clone for RejectError
Source§fn clone(&self) -> RejectError
fn clone(&self) -> RejectError
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 RejectError
impl Debug for RejectError
Source§impl Display for RejectError
impl Display for RejectError
Source§impl Error for RejectError
impl Error for RejectError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<RejectError> for Error
impl From<RejectError> for Error
Source§fn from(source: RejectError) -> Self
fn from(source: RejectError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RejectError
impl RefUnwindSafe for RejectError
impl Send for RejectError
impl Sync for RejectError
impl Unpin for RejectError
impl UnsafeUnpin for RejectError
impl UnwindSafe for RejectError
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