pub struct ClientHint;
Implementations§
Source§impl ClientHint
impl ClientHint
pub const ACCEPT_CLIENT_HINTS: &'static str = "Accept-CH"
pub const CRITICAL_CLIENT_HINTS: &'static str = "Critical-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 const PREFERS_REDUCED_MOTION: &'static str = "Sec-CH-Prefers-Reduced-Motion"
pub const PREFERS_COLOR_SCHEME: &'static str = "Sec-CH-Prefers-Color-Scheme"
pub fn get_client_hint_list() -> String
pub fn get_accept_client_hints_header() -> Header
pub fn get_critical_client_hints_header() -> Header
pub fn get_vary_header_value() -> String
Trait Implementations§
Source§impl Clone for ClientHint
impl Clone for ClientHint
Source§fn clone(&self) -> ClientHint
fn clone(&self) -> ClientHint
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 ClientHint
impl Debug for ClientHint
Source§impl PartialEq for ClientHint
impl PartialEq for ClientHint
impl Eq for ClientHint
impl StructuralPartialEq for ClientHint
Auto Trait Implementations§
impl Freeze for ClientHint
impl RefUnwindSafe for ClientHint
impl Send for ClientHint
impl Sync for ClientHint
impl Unpin for ClientHint
impl UnwindSafe for ClientHint
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