Struct x11rb_protocol::protocol::xproto::AllocColorPlanesRequest
source · [−]pub struct AllocColorPlanesRequest {
pub contiguous: bool,
pub cmap: Colormap,
pub colors: u16,
pub reds: u16,
pub greens: u16,
pub blues: u16,
}
Fields
contiguous: bool
cmap: Colormap
colors: u16
reds: u16
greens: u16
blues: u16
Implementations
sourceimpl AllocColorPlanesRequest
impl AllocColorPlanesRequest
sourcepub fn serialize(self) -> BufWithFds<PiecewiseBuf<'static>>
pub fn serialize(self) -> BufWithFds<PiecewiseBuf<'static>>
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
sourceimpl Clone for AllocColorPlanesRequest
impl Clone for AllocColorPlanesRequest
sourcefn clone(&self) -> AllocColorPlanesRequest
fn clone(&self) -> AllocColorPlanesRequest
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AllocColorPlanesRequest
impl Debug for AllocColorPlanesRequest
sourceimpl Default for AllocColorPlanesRequest
impl Default for AllocColorPlanesRequest
sourcefn default() -> AllocColorPlanesRequest
fn default() -> AllocColorPlanesRequest
Returns the “default value” for a type. Read more
sourceimpl Hash for AllocColorPlanesRequest
impl Hash for AllocColorPlanesRequest
sourceimpl Ord for AllocColorPlanesRequest
impl Ord for AllocColorPlanesRequest
sourceimpl PartialEq<AllocColorPlanesRequest> for AllocColorPlanesRequest
impl PartialEq<AllocColorPlanesRequest> for AllocColorPlanesRequest
sourcefn eq(&self, other: &AllocColorPlanesRequest) -> bool
fn eq(&self, other: &AllocColorPlanesRequest) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &AllocColorPlanesRequest) -> bool
fn ne(&self, other: &AllocColorPlanesRequest) -> bool
This method tests for !=
.
sourceimpl PartialOrd<AllocColorPlanesRequest> for AllocColorPlanesRequest
impl PartialOrd<AllocColorPlanesRequest> for AllocColorPlanesRequest
sourcefn partial_cmp(&self, other: &AllocColorPlanesRequest) -> Option<Ordering>
fn partial_cmp(&self, other: &AllocColorPlanesRequest) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
sourceimpl ReplyRequest for AllocColorPlanesRequest
impl ReplyRequest for AllocColorPlanesRequest
type Reply = AllocColorPlanesReply
type Reply = AllocColorPlanesReply
The kind of reply that this request generates.
sourceimpl Request for AllocColorPlanesRequest
impl Request for AllocColorPlanesRequest
impl Copy for AllocColorPlanesRequest
impl Eq for AllocColorPlanesRequest
impl StructuralEq for AllocColorPlanesRequest
impl StructuralPartialEq for AllocColorPlanesRequest
Auto Trait Implementations
impl RefUnwindSafe for AllocColorPlanesRequest
impl Send for AllocColorPlanesRequest
impl Sync for AllocColorPlanesRequest
impl Unpin for AllocColorPlanesRequest
impl UnwindSafe for AllocColorPlanesRequest
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more