Struct QueryColorsRequest
pub struct QueryColorsRequest<'input> {
pub cmap: u32,
pub pixels: Cow<'input, [u32]>,
}
Fields§
§cmap: u32
§pixels: Cow<'input, [u32]>
Implementations§
§impl<'input> QueryColorsRequest<'input>
impl<'input> QueryColorsRequest<'input>
pub fn serialize(self) -> ([Cow<'input, [u8]>; 3], Vec<OwnedFd>)
pub fn serialize(self) -> ([Cow<'input, [u8]>; 3], Vec<OwnedFd>)
Serialize this request into bytes for the provided connection
pub fn into_owned(self) -> QueryColorsRequest<'static>
pub fn into_owned(self) -> QueryColorsRequest<'static>
Clone all borrowed data in this QueryColorsRequest.
Trait Implementations§
§impl<'input> Clone for QueryColorsRequest<'input>
impl<'input> Clone for QueryColorsRequest<'input>
§fn clone(&self) -> QueryColorsRequest<'input>
fn clone(&self) -> QueryColorsRequest<'input>
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 more§impl Debug for QueryColorsRequest<'_>
impl Debug for QueryColorsRequest<'_>
§impl<'input> Default for QueryColorsRequest<'input>
impl<'input> Default for QueryColorsRequest<'input>
§fn default() -> QueryColorsRequest<'input>
fn default() -> QueryColorsRequest<'input>
Returns the “default value” for a type. Read more
§impl<'input> ReplyRequest for QueryColorsRequest<'input>
impl<'input> ReplyRequest for QueryColorsRequest<'input>
§type Reply = QueryColorsReply
type Reply = QueryColorsReply
The kind of reply that this request generates.
§impl<'input> Request for QueryColorsRequest<'input>
impl<'input> Request for QueryColorsRequest<'input>
Auto Trait Implementations§
impl<'input> Freeze for QueryColorsRequest<'input>
impl<'input> RefUnwindSafe for QueryColorsRequest<'input>
impl<'input> Send for QueryColorsRequest<'input>
impl<'input> Sync for QueryColorsRequest<'input>
impl<'input> Unpin for QueryColorsRequest<'input>
impl<'input> UnwindSafe for QueryColorsRequest<'input>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)