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