Struct JsProfileScreen
pub struct JsProfileScreen {Show 15 fields
pub width: Option<i32>,
pub height: Option<i32>,
pub avail_width: Option<i32>,
pub avail_height: Option<i32>,
pub avail_left: Option<i32>,
pub left: Option<i32>,
pub avail_top: Option<i32>,
pub top: Option<i32>,
pub color_depth: Option<i32>,
pub pixel_depth: Option<i32>,
pub screen_type: Option<String>,
pub moz_orientation: Option<String>,
pub moz_brightness: Option<f32>,
pub lock_orientation: Option<String>,
pub unlock_orientation: Option<String>,
}Expand description
Screen information, if the user-agent supports the Screen API.
The Screen API provides information about the user’s screen. See MDN Screen API reference for more information.
Fields§
§width: Option<i32>The width of the screen.
height: Option<i32>The height of the screen.
avail_width: Option<i32>The amount of horizontal space in pixels available to the window.
avail_height: Option<i32>Specifies the height of the screen, in pixels, minus permanent or semipermanent user interface features displayed by the operating system, such as the Taskbar on Windows.
avail_left: Option<i32>A number representing the x-coordinate (left-hand edge) of the available screen area.
left: Option<i32>A number representing the x-coordinate (left-hand edge) of the total screen area.
avail_top: Option<i32>A number representing the y-coordinate (top edge) of the available screen area.
top: Option<i32>A number representing the y-coordinate (top edge) of the total screen area.
color_depth: Option<i32>The color depth of the screen.
pixel_depth: Option<i32>Gets the bit depth of the screen.
screen_type: Option<String>Usually not defined, is non-standard.
moz_orientation: Option<String>Firefox-specific orientation of the screen.
moz_brightness: Option<f32>Firefox-specific brightness of the screen.
lock_orientation: Option<String>Firefox-specific lock orientation of the screen.
unlock_orientation: Option<String>Firefox-specific unlock orientation of the screen.
Trait Implementations§
§impl Clone for JsProfileScreen
impl Clone for JsProfileScreen
§fn clone(&self) -> JsProfileScreen
fn clone(&self) -> JsProfileScreen
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for JsProfileScreen
impl Debug for JsProfileScreen
§impl<'de> Deserialize<'de> for JsProfileScreen
impl<'de> Deserialize<'de> for JsProfileScreen
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<JsProfileScreen, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<JsProfileScreen, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
§impl Serialize for JsProfileScreen
impl Serialize for JsProfileScreen
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Auto Trait Implementations§
impl Freeze for JsProfileScreen
impl RefUnwindSafe for JsProfileScreen
impl Send for JsProfileScreen
impl Sync for JsProfileScreen
impl Unpin for JsProfileScreen
impl UnsafeUnpin for JsProfileScreen
impl UnwindSafe for JsProfileScreen
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a rama_grpc::Request§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§fn and<P, B, E>(self, other: P) -> And<T, P>
fn and<P, B, E>(self, other: P) -> And<T, P>
Policy that returns Action::Follow only if self and other return
Action::Follow. Read more