Struct rust_web_server::client_hint::ClientHint
source · [−]pub struct ClientHint;
Implementations
sourceimpl ClientHint
impl ClientHint
pub const ACCEPT_CLIENT_HINTS: &'static str = "Accept-CH"
pub const USER_AGENT_CPU_ARCHITECTURE: &'static str = "Sec-CH-UA-Arch"
pub const USER_AGENT_CPU_BITNESS: &'static str = "Sec-CH-UA-Bitness"
pub const USER_AGENT_FULL_BRAND_INFORMATION: &'static str = "Sec-CH-UA-Full-Version-List"
pub const USER_AGENT_DEVICE_MODEL: &'static str = "Sec-CH-UA-Model"
pub const USER_AGENT_OPERATING_SYSTEM_VERSION: &'static str = "Sec-CH-UA-Platform-Version"
pub const NETWORK_DOWNLOAD_SPEED: &'static str = "Downlink"
pub const NETWORK_EFFECTIVE_CONNECTION_TYPE: &'static str = "ECT"
pub const NETWORK_ROUND_TRIP_TIME: &'static str = "RTT"
pub const NETWORK_SAVE_DATA: &'static str = "Save-Data"
pub const DEVICE_MEMORY: &'static str = "Device-Memory"
pub fn get_client_hint_list() -> String
pub fn get_accept_client_hints_header() -> Header
pub fn get_vary_header_value() -> String
Trait Implementations
sourceimpl Clone for ClientHint
impl Clone for ClientHint
sourcefn clone(&self) -> ClientHint
fn clone(&self) -> ClientHint
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ClientHint
impl Debug for ClientHint
sourceimpl PartialEq<ClientHint> for ClientHint
impl PartialEq<ClientHint> for ClientHint
sourcefn eq(&self, other: &ClientHint) -> bool
fn eq(&self, other: &ClientHint) -> bool
impl Eq for ClientHint
impl StructuralEq for ClientHint
impl StructuralPartialEq for ClientHint
Auto Trait Implementations
impl RefUnwindSafe for ClientHint
impl Send for ClientHint
impl Sync for ClientHint
impl Unpin for ClientHint
impl UnwindSafe for ClientHint
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more