#[non_exhaustive]pub struct QwpWsSenderError {
pub category: QwpWsErrorCategory,
pub applied_policy: QwpWsErrorPolicy,
pub status: Option<u8>,
pub message: Option<String>,
pub message_sequence: Option<u64>,
pub from_fsn: u64,
pub to_fsn: u64,
}Expand description
Structured server-side error observed by a QWP/WebSocket sender.
This mirrors Java’s SenderError shape, but Rust exposes it through
polling on crate::ingress::Sender instead of a callback dispatcher.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.category: QwpWsErrorCategoryServer-distinguishable error category.
applied_policy: QwpWsErrorPolicyPolicy the client applied after observing the error.
status: Option<u8>Raw QWP status byte. None for WebSocket protocol violations, which do
not carry a QWP status byte.
message: Option<String>Human-readable message provided by the server or derived from the WebSocket close reason.
message_sequence: Option<u64>Server’s per-frame QWP message sequence. None for WebSocket protocol
violations, which do not carry a QWP message sequence.
from_fsn: u64Inclusive lower bound of the affected frame sequence number span.
to_fsn: u64Inclusive upper bound of the affected frame sequence number span.
Trait Implementations§
Source§impl Clone for QwpWsSenderError
impl Clone for QwpWsSenderError
Source§fn clone(&self) -> QwpWsSenderError
fn clone(&self) -> QwpWsSenderError
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 QwpWsSenderError
impl Debug for QwpWsSenderError
impl Eq for QwpWsSenderError
Source§impl PartialEq for QwpWsSenderError
impl PartialEq for QwpWsSenderError
impl StructuralPartialEq for QwpWsSenderError
Auto Trait Implementations§
impl Freeze for QwpWsSenderError
impl RefUnwindSafe for QwpWsSenderError
impl Send for QwpWsSenderError
impl Sync for QwpWsSenderError
impl Unpin for QwpWsSenderError
impl UnsafeUnpin for QwpWsSenderError
impl UnwindSafe for QwpWsSenderError
Blanket Implementations§
impl<T> Allocation for T
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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