#[non_exhaustive]pub enum WorkerProtocolVersion {
V119,
V120,
}Expand description
Select the worker request protocol without enabling optional capabilities.
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.
V119
Compatibility with Servers that implement only worker protocol 1.19.
V120
The default worker protocol.
Trait Implementations§
Source§impl Clone for WorkerProtocolVersion
impl Clone for WorkerProtocolVersion
Source§fn clone(&self) -> WorkerProtocolVersion
fn clone(&self) -> WorkerProtocolVersion
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WorkerProtocolVersion
impl Debug for WorkerProtocolVersion
Source§impl Default for WorkerProtocolVersion
impl Default for WorkerProtocolVersion
Source§fn default() -> WorkerProtocolVersion
fn default() -> WorkerProtocolVersion
Returns the “default value” for a type. Read more
Source§impl PartialEq for WorkerProtocolVersion
impl PartialEq for WorkerProtocolVersion
impl Copy for WorkerProtocolVersion
impl Eq for WorkerProtocolVersion
impl StructuralPartialEq for WorkerProtocolVersion
Auto Trait Implementations§
impl Freeze for WorkerProtocolVersion
impl RefUnwindSafe for WorkerProtocolVersion
impl Send for WorkerProtocolVersion
impl Sync for WorkerProtocolVersion
impl Unpin for WorkerProtocolVersion
impl UnwindSafe for WorkerProtocolVersion
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