Struct StoreNamedColorRequest
pub struct StoreNamedColorRequest<'input> {
pub flags: ColorFlag,
pub cmap: u32,
pub pixel: u32,
pub name: Cow<'input, [u8]>,
}
Fields§
§flags: ColorFlag
§cmap: u32
§pixel: u32
§name: Cow<'input, [u8]>
Implementations§
§impl<'input> StoreNamedColorRequest<'input>
impl<'input> StoreNamedColorRequest<'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) -> StoreNamedColorRequest<'static>
pub fn into_owned(self) -> StoreNamedColorRequest<'static>
Clone all borrowed data in this StoreNamedColorRequest.
Trait Implementations§
§impl<'input> Clone for StoreNamedColorRequest<'input>
impl<'input> Clone for StoreNamedColorRequest<'input>
§fn clone(&self) -> StoreNamedColorRequest<'input>
fn clone(&self) -> StoreNamedColorRequest<'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 StoreNamedColorRequest<'_>
impl Debug for StoreNamedColorRequest<'_>
§impl<'input> Default for StoreNamedColorRequest<'input>
impl<'input> Default for StoreNamedColorRequest<'input>
§fn default() -> StoreNamedColorRequest<'input>
fn default() -> StoreNamedColorRequest<'input>
Returns the “default value” for a type. Read more
§impl<'input> Request for StoreNamedColorRequest<'input>
impl<'input> Request for StoreNamedColorRequest<'input>
impl<'input> VoidRequest for StoreNamedColorRequest<'input>
Auto Trait Implementations§
impl<'input> Freeze for StoreNamedColorRequest<'input>
impl<'input> RefUnwindSafe for StoreNamedColorRequest<'input>
impl<'input> Send for StoreNamedColorRequest<'input>
impl<'input> Sync for StoreNamedColorRequest<'input>
impl<'input> Unpin for StoreNamedColorRequest<'input>
impl<'input> UnwindSafe for StoreNamedColorRequest<'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
)