pub enum FlushMode {
FlushedAndHalfClosed,
VerdictOnly,
}Expand description
What a FlushOutcome’s collection actually did to the socket, disclosed
so a degraded close is never silent (ruling R2 «SHARED-SOCKET-VERDICT-ONLY»).
Variants§
FlushedAndHalfClosed
Sole owner at PushClient::close: acks drained AND the write half was
FIN’d, so the server saw a graceful half-close.
VerdictOnly
Verdicts collected, no FIN. Every plain PushClient::flush reports
this mode (a flush leaves the connection fully usable), as does a
PushClient::close degraded by a live PushWriter clone still
sharing the socket — a write-half shutdown would break the clone’s
publishes, so close MUST NOT half-close and says so here instead of
degrading silently.
Trait Implementations§
impl Copy for FlushMode
impl Eq for FlushMode
impl StructuralPartialEq for FlushMode
Auto Trait Implementations§
impl Freeze for FlushMode
impl RefUnwindSafe for FlushMode
impl Send for FlushMode
impl Sync for FlushMode
impl Unpin for FlushMode
impl UnsafeUnpin for FlushMode
impl UnwindSafe for FlushMode
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.