pub enum ServerProto {
Http,
Http2,
Https,
Tcp,
}Expand description
Протокол сервера.
Variants§
Trait Implementations§
Source§impl Clone for ServerProto
impl Clone for ServerProto
Source§fn clone(&self) -> ServerProto
fn clone(&self) -> ServerProto
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 moreSource§impl Debug for ServerProto
impl Debug for ServerProto
Source§impl Default for ServerProto
impl Default for ServerProto
Source§fn default() -> ServerProto
fn default() -> ServerProto
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ServerProto
impl<'de> Deserialize<'de> for ServerProto
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for ServerProto
impl Hash for ServerProto
Source§impl Ord for ServerProto
impl Ord for ServerProto
Source§fn cmp(&self, other: &ServerProto) -> Ordering
fn cmp(&self, other: &ServerProto) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ServerProto
impl PartialEq for ServerProto
Source§fn eq(&self, other: &ServerProto) -> bool
fn eq(&self, other: &ServerProto) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ServerProto
impl PartialOrd for ServerProto
Source§impl Serialize for ServerProto
impl Serialize for ServerProto
impl Copy for ServerProto
impl Eq for ServerProto
impl StructuralPartialEq for ServerProto
Auto Trait Implementations§
impl Freeze for ServerProto
impl RefUnwindSafe for ServerProto
impl Send for ServerProto
impl Sync for ServerProto
impl Unpin for ServerProto
impl UnsafeUnpin for ServerProto
impl UnwindSafe for ServerProto
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