Struct x11rb_protocol::protocol::xproto::QueryBestSizeRequest
source · pub struct QueryBestSizeRequest {
pub class: QueryShapeOf,
pub drawable: Drawable,
pub width: u16,
pub height: u16,
}
Fields§
§class: QueryShapeOf
§drawable: Drawable
§width: u16
§height: u16
Implementations§
source§impl QueryBestSizeRequest
impl QueryBestSizeRequest
sourcepub fn serialize(self) -> BufWithFds<[Cow<'static, [u8]>; 1]>
pub fn serialize(self) -> 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 QueryBestSizeRequest
impl Clone for QueryBestSizeRequest
source§fn clone(&self) -> QueryBestSizeRequest
fn clone(&self) -> QueryBestSizeRequest
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 QueryBestSizeRequest
impl Debug for QueryBestSizeRequest
source§impl Default for QueryBestSizeRequest
impl Default for QueryBestSizeRequest
source§fn default() -> QueryBestSizeRequest
fn default() -> QueryBestSizeRequest
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for QueryBestSizeRequest
impl<'de> Deserialize<'de> for QueryBestSizeRequest
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 QueryBestSizeRequest
impl Hash for QueryBestSizeRequest
source§impl Ord for QueryBestSizeRequest
impl Ord for QueryBestSizeRequest
source§fn cmp(&self, other: &QueryBestSizeRequest) -> Ordering
fn cmp(&self, other: &QueryBestSizeRequest) -> 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 QueryBestSizeRequest
impl PartialEq for QueryBestSizeRequest
source§fn eq(&self, other: &QueryBestSizeRequest) -> bool
fn eq(&self, other: &QueryBestSizeRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for QueryBestSizeRequest
impl PartialOrd for QueryBestSizeRequest
source§fn partial_cmp(&self, other: &QueryBestSizeRequest) -> Option<Ordering>
fn partial_cmp(&self, other: &QueryBestSizeRequest) -> 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 QueryBestSizeRequest
impl ReplyRequest for QueryBestSizeRequest
§type Reply = QueryBestSizeReply
type Reply = QueryBestSizeReply
The kind of reply that this request generates.
source§impl Request for QueryBestSizeRequest
impl Request for QueryBestSizeRequest
source§impl Serialize for QueryBestSizeRequest
impl Serialize for QueryBestSizeRequest
impl Copy for QueryBestSizeRequest
impl Eq for QueryBestSizeRequest
impl StructuralPartialEq for QueryBestSizeRequest
Auto Trait Implementations§
impl Freeze for QueryBestSizeRequest
impl RefUnwindSafe for QueryBestSizeRequest
impl Send for QueryBestSizeRequest
impl Sync for QueryBestSizeRequest
impl Unpin for QueryBestSizeRequest
impl UnwindSafe for QueryBestSizeRequest
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