pub enum ClientIdentityType {
Ip,
Hostname,
Path,
None,
}Expand description
How Relay recognises a client (ClientIdentity.id_type,
../core/src/api/enum_labels.ts).
Variants§
Ip
Plain DNS over UDP/TCP, by the client’s source IP; identify is an IP address.
Hostname
DNS over TLS (DoT), by the hostname the client connects to; Core generates
identify, the label of that hostname.
Path
DNS over HTTPS (DoH), by a part of the request path; Core generates identify,
that part.
None
Handled by Core like Ip: identify is an IP address.
Implementations§
Trait Implementations§
Source§impl Clone for ClientIdentityType
impl Clone for ClientIdentityType
Source§fn clone(&self) -> ClientIdentityType
fn clone(&self) -> ClientIdentityType
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 ClientIdentityType
Source§impl Debug for ClientIdentityType
impl Debug for ClientIdentityType
Source§impl<'de> Deserialize<'de> for ClientIdentityType
impl<'de> Deserialize<'de> for ClientIdentityType
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 Display for ClientIdentityType
impl Display for ClientIdentityType
impl Eq for ClientIdentityType
Source§impl FromStr for ClientIdentityType
impl FromStr for ClientIdentityType
Source§impl Hash for ClientIdentityType
impl Hash for ClientIdentityType
Source§impl PartialEq for ClientIdentityType
impl PartialEq for ClientIdentityType
Source§impl Serialize for ClientIdentityType
impl Serialize for ClientIdentityType
impl StructuralPartialEq for ClientIdentityType
Auto Trait Implementations§
impl Freeze for ClientIdentityType
impl RefUnwindSafe for ClientIdentityType
impl Send for ClientIdentityType
impl Sync for ClientIdentityType
impl Unpin for ClientIdentityType
impl UnsafeUnpin for ClientIdentityType
impl UnwindSafe for ClientIdentityType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.