Struct x11rb_protocol::protocol::xprint::PrintGetDocumentDataReply
source · pub struct PrintGetDocumentDataReply {
pub sequence: u16,
pub length: u32,
pub status_code: u32,
pub finished_flag: u32,
pub data: Vec<u8>,
}
Fields§
§sequence: u16
§length: u32
§status_code: u32
§finished_flag: u32
§data: Vec<u8>
Implementations§
source§impl PrintGetDocumentDataReply
impl PrintGetDocumentDataReply
sourcepub fn data_len(&self) -> u32
pub fn data_len(&self) -> u32
Get the value of the dataLen
field.
The dataLen
field is used as the length field of the data
field.
This function computes the field’s value again based on the length of the list.
§Panics
Panics if the value cannot be represented in the target type. This cannot happen with values of the struct received from the X11 server.
Trait Implementations§
source§impl Clone for PrintGetDocumentDataReply
impl Clone for PrintGetDocumentDataReply
source§fn clone(&self) -> PrintGetDocumentDataReply
fn clone(&self) -> PrintGetDocumentDataReply
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 PrintGetDocumentDataReply
impl Debug for PrintGetDocumentDataReply
source§impl Default for PrintGetDocumentDataReply
impl Default for PrintGetDocumentDataReply
source§fn default() -> PrintGetDocumentDataReply
fn default() -> PrintGetDocumentDataReply
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PrintGetDocumentDataReply
impl<'de> Deserialize<'de> for PrintGetDocumentDataReply
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<PrintGetDocumentDataReply> for Reply
impl From<PrintGetDocumentDataReply> for Reply
source§fn from(reply: PrintGetDocumentDataReply) -> Reply
fn from(reply: PrintGetDocumentDataReply) -> Reply
Converts to this type from the input type.
source§impl Hash for PrintGetDocumentDataReply
impl Hash for PrintGetDocumentDataReply
source§impl Ord for PrintGetDocumentDataReply
impl Ord for PrintGetDocumentDataReply
source§fn cmp(&self, other: &PrintGetDocumentDataReply) -> Ordering
fn cmp(&self, other: &PrintGetDocumentDataReply) -> 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 PrintGetDocumentDataReply
impl PartialEq for PrintGetDocumentDataReply
source§fn eq(&self, other: &PrintGetDocumentDataReply) -> bool
fn eq(&self, other: &PrintGetDocumentDataReply) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PrintGetDocumentDataReply
impl PartialOrd for PrintGetDocumentDataReply
source§fn partial_cmp(&self, other: &PrintGetDocumentDataReply) -> Option<Ordering>
fn partial_cmp(&self, other: &PrintGetDocumentDataReply) -> 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 TryParse for PrintGetDocumentDataReply
impl TryParse for PrintGetDocumentDataReply
impl Eq for PrintGetDocumentDataReply
impl StructuralPartialEq for PrintGetDocumentDataReply
Auto Trait Implementations§
impl Freeze for PrintGetDocumentDataReply
impl RefUnwindSafe for PrintGetDocumentDataReply
impl Send for PrintGetDocumentDataReply
impl Sync for PrintGetDocumentDataReply
impl Unpin for PrintGetDocumentDataReply
impl UnwindSafe for PrintGetDocumentDataReply
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<OwnedFd>
) -> Result<(T, &'a [u8]), ParseError>
fn try_parse_fd<'a>( value: &'a [u8], _: &mut Vec<OwnedFd> ) -> Result<(T, &'a [u8]), ParseError>
Try to parse the given values into an instance of this type. Read more