pub(crate) enum Admission {
Admit,
DropTail,
ResetStream {
code: u64,
},
}Expand description
What admission decided about one arriving unit.
There is no Block variant, and its absence is the design: Block is
not a decision taken about a unit that arrived, it is the read branch
never being polled, so no unit arrives to decide about. That is what
makes Self::DropTail observable at all — see
Scheduler::blocking_depth.
Variants§
Admit
Forward it, exactly as an unshaped session would.
DropTail
Discard it. The caller must run it through the framer’s elide path so absolute object IDs on drafts 14-19 stay correct, and must admit it anyway if an elide guard refuses.
ResetStream
Abandon the destination stream with code.
Trait Implementations§
impl Copy for Admission
impl Eq for Admission
impl StructuralPartialEq for Admission
Auto Trait Implementations§
impl Freeze for Admission
impl RefUnwindSafe for Admission
impl Send for Admission
impl Sync for Admission
impl Unpin for Admission
impl UnsafeUnpin for Admission
impl UnwindSafe for Admission
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