pub struct SetWindowCreateContextRequest<'input> {
pub context: Cow<'input, [u8]>,
}Fields§
§context: Cow<'input, [u8]>Implementations§
Source§impl<'input> SetWindowCreateContextRequest<'input>
impl<'input> SetWindowCreateContextRequest<'input>
Sourcepub fn serialize(
self,
major_opcode: u8,
) -> ([Cow<'input, [u8]>; 3], Vec<OwnedFd>)
pub fn serialize( self, major_opcode: u8, ) -> ([Cow<'input, [u8]>; 3], Vec<OwnedFd>)
Serialize this request into bytes for the provided connection
Sourcepub fn try_parse_request(
header: RequestHeader,
value: &'input [u8],
) -> Result<SetWindowCreateContextRequest<'input>, ParseError>
pub fn try_parse_request( header: RequestHeader, value: &'input [u8], ) -> Result<SetWindowCreateContextRequest<'input>, ParseError>
Parse this request given its header, its body, and any fds that go along with it
Sourcepub fn into_owned(self) -> SetWindowCreateContextRequest<'static>
pub fn into_owned(self) -> SetWindowCreateContextRequest<'static>
Clone all borrowed data in this SetWindowCreateContextRequest.
Trait Implementations§
Source§impl<'input> Clone for SetWindowCreateContextRequest<'input>
impl<'input> Clone for SetWindowCreateContextRequest<'input>
Source§fn clone(&self) -> SetWindowCreateContextRequest<'input>
fn clone(&self) -> SetWindowCreateContextRequest<'input>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'input> Debug for SetWindowCreateContextRequest<'input>
impl<'input> Debug for SetWindowCreateContextRequest<'input>
Source§impl<'input> Default for SetWindowCreateContextRequest<'input>
impl<'input> Default for SetWindowCreateContextRequest<'input>
Source§fn default() -> SetWindowCreateContextRequest<'input>
fn default() -> SetWindowCreateContextRequest<'input>
Returns the “default value” for a type. Read more
impl<'input> Eq for SetWindowCreateContextRequest<'input>
Source§impl<'input> Hash for SetWindowCreateContextRequest<'input>
impl<'input> Hash for SetWindowCreateContextRequest<'input>
Source§impl<'input> Ord for SetWindowCreateContextRequest<'input>
impl<'input> Ord for SetWindowCreateContextRequest<'input>
Source§fn cmp(&self, other: &SetWindowCreateContextRequest<'input>) -> Ordering
fn cmp(&self, other: &SetWindowCreateContextRequest<'input>) -> Ordering
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl<'input> PartialEq for SetWindowCreateContextRequest<'input>
impl<'input> PartialEq for SetWindowCreateContextRequest<'input>
Source§impl<'input> PartialOrd for SetWindowCreateContextRequest<'input>
impl<'input> PartialOrd for SetWindowCreateContextRequest<'input>
Source§impl<'input> Request for SetWindowCreateContextRequest<'input>
impl<'input> Request for SetWindowCreateContextRequest<'input>
impl<'input> StructuralPartialEq for SetWindowCreateContextRequest<'input>
impl<'input> VoidRequest for SetWindowCreateContextRequest<'input>
Auto Trait Implementations§
impl<'input> Freeze for SetWindowCreateContextRequest<'input>
impl<'input> RefUnwindSafe for SetWindowCreateContextRequest<'input>
impl<'input> Send for SetWindowCreateContextRequest<'input>
impl<'input> Sync for SetWindowCreateContextRequest<'input>
impl<'input> Unpin for SetWindowCreateContextRequest<'input>
impl<'input> UnsafeUnpin for SetWindowCreateContextRequest<'input>
impl<'input> UnwindSafe for SetWindowCreateContextRequest<'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