Struct x11rb_protocol::protocol::present::GenericEvent
source · pub struct GenericEvent {
pub response_type: u8,
pub extension: u8,
pub sequence: u16,
pub length: u32,
pub evtype: u16,
pub event: Event,
}
Fields§
§response_type: u8
§extension: u8
§sequence: u16
§length: u32
§evtype: u16
§event: Event
Trait Implementations§
source§impl Clone for GenericEvent
impl Clone for GenericEvent
source§fn clone(&self) -> GenericEvent
fn clone(&self) -> GenericEvent
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 GenericEvent
impl Debug for GenericEvent
source§impl Default for GenericEvent
impl Default for GenericEvent
source§fn default() -> GenericEvent
fn default() -> GenericEvent
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for GenericEvent
impl<'de> Deserialize<'de> for GenericEvent
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 From<&GenericEvent> for [u8; 32]
impl From<&GenericEvent> for [u8; 32]
source§fn from(input: &GenericEvent) -> Self
fn from(input: &GenericEvent) -> Self
Converts to this type from the input type.
source§impl From<GenericEvent> for [u8; 32]
impl From<GenericEvent> for [u8; 32]
source§fn from(input: GenericEvent) -> Self
fn from(input: GenericEvent) -> Self
Converts to this type from the input type.
source§impl Hash for GenericEvent
impl Hash for GenericEvent
source§impl Ord for GenericEvent
impl Ord for GenericEvent
source§fn cmp(&self, other: &GenericEvent) -> Ordering
fn cmp(&self, other: &GenericEvent) -> 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 GenericEvent
impl PartialEq for GenericEvent
source§fn eq(&self, other: &GenericEvent) -> bool
fn eq(&self, other: &GenericEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for GenericEvent
impl PartialOrd for GenericEvent
source§fn partial_cmp(&self, other: &GenericEvent) -> Option<Ordering>
fn partial_cmp(&self, other: &GenericEvent) -> 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 Serialize for GenericEvent
impl Serialize for GenericEvent
source§impl Serialize for GenericEvent
impl Serialize for GenericEvent
source§impl TryParse for GenericEvent
impl TryParse for GenericEvent
impl Copy for GenericEvent
impl Eq for GenericEvent
impl StructuralPartialEq for GenericEvent
Auto Trait Implementations§
impl Freeze for GenericEvent
impl RefUnwindSafe for GenericEvent
impl Send for GenericEvent
impl Sync for GenericEvent
impl Unpin for GenericEvent
impl UnwindSafe for GenericEvent
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> TryParseFd for Twhere
T: TryParse,
impl<T> TryParseFd for Twhere
T: TryParse,
source§fn try_parse_fd<'a>(
value: &'a [u8],
_: &mut Vec<RawFdContainer>
) -> Result<(T, &'a [u8]), ParseError>
fn try_parse_fd<'a>( value: &'a [u8], _: &mut Vec<RawFdContainer> ) -> Result<(T, &'a [u8]), ParseError>
Try to parse the given values into an instance of this type. Read more