Struct x11rb::protocol::glx::MakeContextCurrentRequest
source · pub struct MakeContextCurrentRequest {
pub old_context_tag: u32,
pub drawable: u32,
pub read_drawable: u32,
pub context: u32,
}
Fields§
§old_context_tag: u32
§drawable: u32
§read_drawable: u32
§context: u32
Implementations§
source§impl MakeContextCurrentRequest
impl MakeContextCurrentRequest
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<MakeContextCurrentRequest, ParseError>
pub fn try_parse_request( header: RequestHeader, value: &[u8] ) -> Result<MakeContextCurrentRequest, ParseError>
Parse this request given its header, its body, and any fds that go along with it
Trait Implementations§
source§impl Clone for MakeContextCurrentRequest
impl Clone for MakeContextCurrentRequest
source§fn clone(&self) -> MakeContextCurrentRequest
fn clone(&self) -> MakeContextCurrentRequest
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 MakeContextCurrentRequest
impl Debug for MakeContextCurrentRequest
source§impl Default for MakeContextCurrentRequest
impl Default for MakeContextCurrentRequest
source§fn default() -> MakeContextCurrentRequest
fn default() -> MakeContextCurrentRequest
Returns the “default value” for a type. Read more
source§impl Hash for MakeContextCurrentRequest
impl Hash for MakeContextCurrentRequest
source§impl Ord for MakeContextCurrentRequest
impl Ord for MakeContextCurrentRequest
source§fn cmp(&self, other: &MakeContextCurrentRequest) -> Ordering
fn cmp(&self, other: &MakeContextCurrentRequest) -> 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 MakeContextCurrentRequest
impl PartialEq for MakeContextCurrentRequest
source§fn eq(&self, other: &MakeContextCurrentRequest) -> bool
fn eq(&self, other: &MakeContextCurrentRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for MakeContextCurrentRequest
impl PartialOrd for MakeContextCurrentRequest
source§fn partial_cmp(&self, other: &MakeContextCurrentRequest) -> Option<Ordering>
fn partial_cmp(&self, other: &MakeContextCurrentRequest) -> 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 MakeContextCurrentRequest
impl ReplyRequest for MakeContextCurrentRequest
§type Reply = MakeContextCurrentReply
type Reply = MakeContextCurrentReply
The kind of reply that this request generates.
source§impl Request for MakeContextCurrentRequest
impl Request for MakeContextCurrentRequest
impl Copy for MakeContextCurrentRequest
impl Eq for MakeContextCurrentRequest
impl StructuralPartialEq for MakeContextCurrentRequest
Auto Trait Implementations§
impl Freeze for MakeContextCurrentRequest
impl RefUnwindSafe for MakeContextCurrentRequest
impl Send for MakeContextCurrentRequest
impl Sync for MakeContextCurrentRequest
impl Unpin for MakeContextCurrentRequest
impl UnwindSafe for MakeContextCurrentRequest
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