pub enum PushPolicy {
Reserved,
Enabled,
}Expand description
Server-push policy (PRO-001).
Variants§
Reserved
PUSH_ID reserved: servers refuse it from clients and never emit
it. The standard — emitting push is a capability an application
opts into by shipping a push-producing command.
Enabled
Push frames flow to the client’s push hook.
Trait Implementations§
Source§impl Clone for PushPolicy
impl Clone for PushPolicy
Source§fn clone(&self) -> PushPolicy
fn clone(&self) -> PushPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PushPolicy
Source§impl Debug for PushPolicy
impl Debug for PushPolicy
impl Eq for PushPolicy
Source§impl PartialEq for PushPolicy
impl PartialEq for PushPolicy
impl StructuralPartialEq for PushPolicy
Auto Trait Implementations§
impl Freeze for PushPolicy
impl RefUnwindSafe for PushPolicy
impl Send for PushPolicy
impl Sync for PushPolicy
impl Unpin for PushPolicy
impl UnsafeUnpin for PushPolicy
impl UnwindSafe for PushPolicy
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