pub enum OutOfOrderPolicy {
Report,
Close,
}Expand description
What to do when a message arrives that is not allowed in the current state.
Variants§
Report
Answer INVALID_CONTENT, report it, and carry on.
S2J schemas/ReceptionStatusValues gives the consequence of INVALID_CONTENT as
“Message is ignored, proceed if possible” — a peer that is early is not a peer
that is hostile, and closing on it takes a resource out of a manager’s reach for
a race.
Close
Answer, then close the session.
Trait Implementations§
Source§impl Clone for OutOfOrderPolicy
impl Clone for OutOfOrderPolicy
impl Copy for OutOfOrderPolicy
Source§impl Debug for OutOfOrderPolicy
impl Debug for OutOfOrderPolicy
Source§impl Default for OutOfOrderPolicy
impl Default for OutOfOrderPolicy
impl Eq for OutOfOrderPolicy
Source§impl PartialEq for OutOfOrderPolicy
impl PartialEq for OutOfOrderPolicy
impl StructuralPartialEq for OutOfOrderPolicy
Auto Trait Implementations§
impl Forget for OutOfOrderPolicy
impl Freeze for OutOfOrderPolicy
impl RefUnwindSafe for OutOfOrderPolicy
impl Send for OutOfOrderPolicy
impl Sync for OutOfOrderPolicy
impl Unpin for OutOfOrderPolicy
impl UnsafeUnpin for OutOfOrderPolicy
impl UnwindSafe for OutOfOrderPolicy
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
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.