enum Cause {
EndStream,
Error(Error),
ScheduledLibraryReset(Reason),
}
Variants§
EndStream
Error(Error)
ScheduledLibraryReset(Reason)
This indicates to the connection that a reset frame must be sent out once the send queue has been flushed.
Examples of when this could happen:
- User drops all references to a stream, so we want to CANCEL the it.
- Header block size was too large, so we want to REFUSE, possibly after sending a 431 response frame.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Cause
impl RefUnwindSafe for Cause
impl Send for Cause
impl Sync for Cause
impl Unpin for Cause
impl UnwindSafe for Cause
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