Struct x11rb_protocol::protocol::dri2::ConnectRequest
source · pub struct ConnectRequest {
pub window: Window,
pub driver_type: DriverType,
}
Fields§
§window: Window
§driver_type: DriverType
Implementations§
source§impl ConnectRequest
impl ConnectRequest
sourcepub fn serialize(self, major_opcode: u8) -> BufWithFds<[Cow<'static, [u8]>; 1]>
pub fn serialize(self, major_opcode: u8) -> BufWithFds<[Cow<'static, [u8]>; 1]>
Serialize this request into bytes for the provided connection
sourcepub fn try_parse_request(
header: RequestHeader,
value: &[u8]
) -> Result<Self, ParseError>
pub fn try_parse_request( header: RequestHeader, value: &[u8] ) -> Result<Self, ParseError>
Parse this request given its header, its body, and any fds that go along with it
Trait Implementations§
source§impl Clone for ConnectRequest
impl Clone for ConnectRequest
source§fn clone(&self) -> ConnectRequest
fn clone(&self) -> ConnectRequest
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 ConnectRequest
impl Debug for ConnectRequest
source§impl Default for ConnectRequest
impl Default for ConnectRequest
source§fn default() -> ConnectRequest
fn default() -> ConnectRequest
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ConnectRequest
impl<'de> Deserialize<'de> for ConnectRequest
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for ConnectRequest
impl Hash for ConnectRequest
source§impl Ord for ConnectRequest
impl Ord for ConnectRequest
source§fn cmp(&self, other: &ConnectRequest) -> Ordering
fn cmp(&self, other: &ConnectRequest) -> 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 ConnectRequest
impl PartialEq for ConnectRequest
source§fn eq(&self, other: &ConnectRequest) -> bool
fn eq(&self, other: &ConnectRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ConnectRequest
impl PartialOrd for ConnectRequest
source§fn partial_cmp(&self, other: &ConnectRequest) -> Option<Ordering>
fn partial_cmp(&self, other: &ConnectRequest) -> 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 ConnectRequest
impl ReplyRequest for ConnectRequest
§type Reply = ConnectReply
type Reply = ConnectReply
The kind of reply that this request generates.
source§impl Request for ConnectRequest
impl Request for ConnectRequest
source§impl Serialize for ConnectRequest
impl Serialize for ConnectRequest
impl Copy for ConnectRequest
impl Eq for ConnectRequest
impl StructuralPartialEq for ConnectRequest
Auto Trait Implementations§
impl Freeze for ConnectRequest
impl RefUnwindSafe for ConnectRequest
impl Send for ConnectRequest
impl Sync for ConnectRequest
impl Unpin for ConnectRequest
impl UnwindSafe for ConnectRequest
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