Struct x11rb_protocol::protocol::dpms::InfoRequest
source · pub struct InfoRequest;
Implementations§
source§impl InfoRequest
impl InfoRequest
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 InfoRequest
impl Clone for InfoRequest
source§fn clone(&self) -> InfoRequest
fn clone(&self) -> InfoRequest
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 InfoRequest
impl Debug for InfoRequest
source§impl Default for InfoRequest
impl Default for InfoRequest
source§fn default() -> InfoRequest
fn default() -> InfoRequest
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for InfoRequest
impl<'de> Deserialize<'de> for InfoRequest
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 InfoRequest
impl Hash for InfoRequest
source§impl Ord for InfoRequest
impl Ord for InfoRequest
source§fn cmp(&self, other: &InfoRequest) -> Ordering
fn cmp(&self, other: &InfoRequest) -> 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 InfoRequest
impl PartialEq for InfoRequest
source§fn eq(&self, other: &InfoRequest) -> bool
fn eq(&self, other: &InfoRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for InfoRequest
impl PartialOrd for InfoRequest
source§fn partial_cmp(&self, other: &InfoRequest) -> Option<Ordering>
fn partial_cmp(&self, other: &InfoRequest) -> 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 InfoRequest
impl ReplyRequest for InfoRequest
source§impl Request for InfoRequest
impl Request for InfoRequest
source§impl Serialize for InfoRequest
impl Serialize for InfoRequest
impl Copy for InfoRequest
impl Eq for InfoRequest
impl StructuralPartialEq for InfoRequest
Auto Trait Implementations§
impl Freeze for InfoRequest
impl RefUnwindSafe for InfoRequest
impl Send for InfoRequest
impl Sync for InfoRequest
impl Unpin for InfoRequest
impl UnwindSafe for InfoRequest
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