pub enum UpgradedStreamVariant {
Tcp,
Tls,
Adapter,
}Expand description
Classification of the concrete IO inside an UpgradedStream.
Used by the Python bindings to refuse start_tls on streams where
the underlying socket cannot be recovered (Hyper’s opaque adapter).
Variants§
Trait Implementations§
Source§impl Clone for UpgradedStreamVariant
impl Clone for UpgradedStreamVariant
Source§fn clone(&self) -> UpgradedStreamVariant
fn clone(&self) -> UpgradedStreamVariant
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 UpgradedStreamVariant
Source§impl Debug for UpgradedStreamVariant
impl Debug for UpgradedStreamVariant
impl Eq for UpgradedStreamVariant
Source§impl PartialEq for UpgradedStreamVariant
impl PartialEq for UpgradedStreamVariant
impl StructuralPartialEq for UpgradedStreamVariant
Auto Trait Implementations§
impl Freeze for UpgradedStreamVariant
impl RefUnwindSafe for UpgradedStreamVariant
impl Send for UpgradedStreamVariant
impl Sync for UpgradedStreamVariant
impl Unpin for UpgradedStreamVariant
impl UnsafeUnpin for UpgradedStreamVariant
impl UnwindSafe for UpgradedStreamVariant
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