Struct x11rb::protocol::glx::GetMinmaxRequest
source · pub struct GetMinmaxRequest {
pub context_tag: u32,
pub target: u32,
pub format: u32,
pub type_: u32,
pub swap_bytes: bool,
pub reset: bool,
}
Fields§
§context_tag: u32
§target: u32
§format: u32
§type_: u32
§swap_bytes: bool
§reset: bool
Implementations§
source§impl GetMinmaxRequest
impl GetMinmaxRequest
sourcepub fn serialize(
self,
major_opcode: u8
) -> ([Cow<'static, [u8]>; 1], Vec<OwnedFd>)
pub fn serialize( self, major_opcode: u8 ) -> ([Cow<'static, [u8]>; 1], Vec<OwnedFd>)
Serialize this request into bytes for the provided connection
sourcepub fn try_parse_request(
header: RequestHeader,
value: &[u8]
) -> Result<GetMinmaxRequest, ParseError>
pub fn try_parse_request( header: RequestHeader, value: &[u8] ) -> Result<GetMinmaxRequest, ParseError>
Parse this request given its header, its body, and any fds that go along with it
Trait Implementations§
source§impl Clone for GetMinmaxRequest
impl Clone for GetMinmaxRequest
source§fn clone(&self) -> GetMinmaxRequest
fn clone(&self) -> GetMinmaxRequest
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 GetMinmaxRequest
impl Debug for GetMinmaxRequest
source§impl Default for GetMinmaxRequest
impl Default for GetMinmaxRequest
source§fn default() -> GetMinmaxRequest
fn default() -> GetMinmaxRequest
Returns the “default value” for a type. Read more
source§impl Hash for GetMinmaxRequest
impl Hash for GetMinmaxRequest
source§impl Ord for GetMinmaxRequest
impl Ord for GetMinmaxRequest
source§fn cmp(&self, other: &GetMinmaxRequest) -> Ordering
fn cmp(&self, other: &GetMinmaxRequest) -> Ordering
1.21.0 · source§fn 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
source§impl PartialEq for GetMinmaxRequest
impl PartialEq for GetMinmaxRequest
source§fn eq(&self, other: &GetMinmaxRequest) -> bool
fn eq(&self, other: &GetMinmaxRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for GetMinmaxRequest
impl PartialOrd for GetMinmaxRequest
source§fn partial_cmp(&self, other: &GetMinmaxRequest) -> Option<Ordering>
fn partial_cmp(&self, other: &GetMinmaxRequest) -> Option<Ordering>
1.0.0 · source§fn 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 moresource§impl ReplyRequest for GetMinmaxRequest
impl ReplyRequest for GetMinmaxRequest
§type Reply = GetMinmaxReply
type Reply = GetMinmaxReply
The kind of reply that this request generates.
source§impl Request for GetMinmaxRequest
impl Request for GetMinmaxRequest
impl Copy for GetMinmaxRequest
impl Eq for GetMinmaxRequest
impl StructuralPartialEq for GetMinmaxRequest
Auto Trait Implementations§
impl Freeze for GetMinmaxRequest
impl RefUnwindSafe for GetMinmaxRequest
impl Send for GetMinmaxRequest
impl Sync for GetMinmaxRequest
impl Unpin for GetMinmaxRequest
impl UnwindSafe for GetMinmaxRequest
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