pub enum UpgradeType {
Http,
WebSocket,
Unknown(String),
}Expand description
Represents different upgrade types.
Variants§
Implementations§
Source§impl UpgradeType
impl UpgradeType
Trait Implementations§
Source§impl Clone for UpgradeType
impl Clone for UpgradeType
Source§fn clone(&self) -> UpgradeType
fn clone(&self) -> UpgradeType
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 UpgradeType
impl Debug for UpgradeType
Source§impl Default for UpgradeType
impl Default for UpgradeType
Source§impl Display for UpgradeType
impl Display for UpgradeType
Source§impl FromStr for UpgradeType
impl FromStr for UpgradeType
Source§impl PartialEq for UpgradeType
impl PartialEq for UpgradeType
impl Eq for UpgradeType
impl StructuralPartialEq for UpgradeType
Auto Trait Implementations§
impl Freeze for UpgradeType
impl RefUnwindSafe for UpgradeType
impl Send for UpgradeType
impl Sync for UpgradeType
impl Unpin for UpgradeType
impl UnwindSafe for UpgradeType
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