#[non_exhaustive]pub enum CloseAfter {
State,
No,
}Expand description
The RFC 8620 §7.3 closeafter event-source variable, which “MUST be
one of” these two values.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
State
"state": “The server MUST end the HTTP response after pushing a
state event.”
No
"no": “The connection is persisted by the server as a standard
event-source resource.”
Implementations§
Trait Implementations§
Source§impl Clone for CloseAfter
impl Clone for CloseAfter
impl Copy for CloseAfter
Source§impl Debug for CloseAfter
impl Debug for CloseAfter
impl Eq for CloseAfter
Source§impl Hash for CloseAfter
impl Hash for CloseAfter
Source§impl PartialEq for CloseAfter
impl PartialEq for CloseAfter
impl StructuralPartialEq for CloseAfter
Auto Trait Implementations§
impl Freeze for CloseAfter
impl RefUnwindSafe for CloseAfter
impl Send for CloseAfter
impl Sync for CloseAfter
impl Unpin for CloseAfter
impl UnsafeUnpin for CloseAfter
impl UnwindSafe for CloseAfter
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