pub struct DisplayInfo {
pub layer_stack: Option<u32>,
pub display_id: Option<i32>,
pub logical_width: Option<i32>,
pub logical_height: Option<i32>,
pub transform_inverse: Option<Transform>,
pub transform: Option<Transform>,
pub receives_input: Option<bool>,
pub is_secure: Option<bool>,
pub is_primary: Option<bool>,
pub is_virtual: Option<bool>,
pub rotation_flags: Option<i32>,
pub transform_hint: Option<i32>,
}Fields§
§layer_stack: Option<u32>§display_id: Option<i32>§logical_width: Option<i32>§logical_height: Option<i32>§transform_inverse: Option<Transform>§transform: Option<Transform>§receives_input: Option<bool>§is_secure: Option<bool>§is_primary: Option<bool>§is_virtual: Option<bool>§rotation_flags: Option<i32>§transform_hint: Option<i32>Implementations§
Source§impl DisplayInfo
impl DisplayInfo
Sourcepub fn layer_stack(&self) -> u32
pub fn layer_stack(&self) -> u32
Returns the value of layer_stack, or the default value if layer_stack is unset.
Sourcepub fn display_id(&self) -> i32
pub fn display_id(&self) -> i32
Returns the value of display_id, or the default value if display_id is unset.
Sourcepub fn logical_width(&self) -> i32
pub fn logical_width(&self) -> i32
Returns the value of logical_width, or the default value if logical_width is unset.
Sourcepub fn logical_height(&self) -> i32
pub fn logical_height(&self) -> i32
Returns the value of logical_height, or the default value if logical_height is unset.
Sourcepub fn receives_input(&self) -> bool
pub fn receives_input(&self) -> bool
Returns the value of receives_input, or the default value if receives_input is unset.
Sourcepub fn is_secure(&self) -> bool
pub fn is_secure(&self) -> bool
Returns the value of is_secure, or the default value if is_secure is unset.
Sourcepub fn is_primary(&self) -> bool
pub fn is_primary(&self) -> bool
Returns the value of is_primary, or the default value if is_primary is unset.
Sourcepub fn is_virtual(&self) -> bool
pub fn is_virtual(&self) -> bool
Returns the value of is_virtual, or the default value if is_virtual is unset.
Sourcepub fn rotation_flags(&self) -> i32
pub fn rotation_flags(&self) -> i32
Returns the value of rotation_flags, or the default value if rotation_flags is unset.
Sourcepub fn transform_hint(&self) -> i32
pub fn transform_hint(&self) -> i32
Returns the value of transform_hint, or the default value if transform_hint is unset.
Trait Implementations§
Source§impl Clone for DisplayInfo
impl Clone for DisplayInfo
Source§fn clone(&self) -> DisplayInfo
fn clone(&self) -> DisplayInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DisplayInfo
impl Debug for DisplayInfo
Source§impl Default for DisplayInfo
impl Default for DisplayInfo
Source§fn default() -> DisplayInfo
fn default() -> DisplayInfo
Source§impl Message for DisplayInfo
impl Message for DisplayInfo
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for DisplayInfo
impl PartialEq for DisplayInfo
impl Copy for DisplayInfo
impl StructuralPartialEq for DisplayInfo
Auto Trait Implementations§
impl Freeze for DisplayInfo
impl RefUnwindSafe for DisplayInfo
impl Send for DisplayInfo
impl Sync for DisplayInfo
impl Unpin for DisplayInfo
impl UnwindSafe for DisplayInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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 tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].