Struct x11rb::protocol::randr::SetScreenConfigRequest
source · pub struct SetScreenConfigRequest {
pub window: u32,
pub timestamp: u32,
pub config_timestamp: u32,
pub size_id: u16,
pub rotation: Rotation,
pub rate: u16,
}Fields
window: u32timestamp: u32config_timestamp: u32size_id: u16rotation: Rotationrate: u16Implementations
sourceimpl SetScreenConfigRequest
impl SetScreenConfigRequest
sourcepub fn serialize(
self,
major_opcode: u8
) -> (Vec<Cow<'static, [u8]>, Global>, Vec<RawFdContainer, Global>)
pub fn serialize(
self,
major_opcode: u8
) -> (Vec<Cow<'static, [u8]>, Global>, Vec<RawFdContainer, Global>)
Serialize this request into bytes for the provided connection
sourcepub fn try_parse_request(
header: RequestHeader,
value: &[u8]
) -> Result<SetScreenConfigRequest, ParseError>
pub fn try_parse_request(
header: RequestHeader,
value: &[u8]
) -> Result<SetScreenConfigRequest, ParseError>
Parse this request given its header, its body, and any fds that go along with it
Trait Implementations
sourceimpl Clone for SetScreenConfigRequest
impl Clone for SetScreenConfigRequest
sourcefn clone(&self) -> SetScreenConfigRequest
fn clone(&self) -> SetScreenConfigRequest
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 SetScreenConfigRequest
impl Debug for SetScreenConfigRequest
sourceimpl Default for SetScreenConfigRequest
impl Default for SetScreenConfigRequest
sourcefn default() -> SetScreenConfigRequest
fn default() -> SetScreenConfigRequest
Returns the “default value” for a type. Read more
sourceimpl Hash for SetScreenConfigRequest
impl Hash for SetScreenConfigRequest
sourceimpl Ord for SetScreenConfigRequest
impl Ord for SetScreenConfigRequest
sourcefn cmp(&self, other: &SetScreenConfigRequest) -> Ordering
fn cmp(&self, other: &SetScreenConfigRequest) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<SetScreenConfigRequest> for SetScreenConfigRequest
impl PartialEq<SetScreenConfigRequest> for SetScreenConfigRequest
sourcefn eq(&self, other: &SetScreenConfigRequest) -> bool
fn eq(&self, other: &SetScreenConfigRequest) -> bool
sourceimpl PartialOrd<SetScreenConfigRequest> for SetScreenConfigRequest
impl PartialOrd<SetScreenConfigRequest> for SetScreenConfigRequest
sourcefn partial_cmp(&self, other: &SetScreenConfigRequest) -> Option<Ordering>
fn partial_cmp(&self, other: &SetScreenConfigRequest) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresourceimpl ReplyRequest for SetScreenConfigRequest
impl ReplyRequest for SetScreenConfigRequest
type Reply = SetScreenConfigReply
type Reply = SetScreenConfigReply
The kind of reply that this request generates.
sourceimpl Request for SetScreenConfigRequest
impl Request for SetScreenConfigRequest
sourceconst EXTENSION_NAME: Option<&'static str> = Some(X11_EXTENSION_NAME)
const EXTENSION_NAME: Option<&'static str> = Some(X11_EXTENSION_NAME)
The protocol name of the extension that this request belongs to, or None for core requests
impl Copy for SetScreenConfigRequest
impl Eq for SetScreenConfigRequest
impl StructuralEq for SetScreenConfigRequest
impl StructuralPartialEq for SetScreenConfigRequest
Auto Trait Implementations
impl RefUnwindSafe for SetScreenConfigRequest
impl Send for SetScreenConfigRequest
impl Sync for SetScreenConfigRequest
impl Unpin for SetScreenConfigRequest
impl UnwindSafe for SetScreenConfigRequest
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