Module x11_utils

Source
Expand description

Utility functions for X11 things.

The most important definitions in this module are the TryParse, TryParseFd and Serialize traits. These traits are used internally for parsing incoming data and producing outgoing data when talking with the X11 server.

Macrosยง

bitmask_binop ๐Ÿ”’
forward_float ๐Ÿ”’
impl_debug_if_no_extra_traits ๐Ÿ”’
implement_serialize ๐Ÿ”’
implement_try_parse ๐Ÿ”’
tuple_impls ๐Ÿ”’
tuple_serialize ๐Ÿ”’
tuple_try_parse ๐Ÿ”’

Structsยง

ExtensionInformation
Information about a X11 extension.
RequestHeader
A representation of the header of a request.
X11Error
Representation of an X11 error packet that was sent by the server.

Enumsยง

BigRequests
Has the BigRequests extension been enabled?

Traitsยง

ExtInfoProvider
Trait to provide information about extensions.
ReplyFDsRequest
A X11 request that has a reply with FDs
ReplyRequest
A X11 request that has a reply without FDs
Request
A type implementing this trait is an X11 request.
Serialize
A type implementing this trait can be serialized into X11 raw bytes.
TryIntoUSize ๐Ÿ”’
Wrapper around TryInto that produces a ParseError.
TryParse
A type implementing this trait can be parsed from some raw bytes.
TryParseFd
A type implementing this trait can be parsed from some raw bytes and a list of fds.
VoidRequest
A X11 request that does not have a reply

Functionsยง

parse_list ๐Ÿ”’
Parse a list of objects from the given data.
parse_request_header
Parse the given input for a RequestHeader and the remaining input.
parse_u8_array ๐Ÿ”’
Parse an array of u8 from the given data.
parse_u8_array_ref ๐Ÿ”’
Parse an array of u8 from the given data.
parse_u8_list ๐Ÿ”’
Parse a list of u8 from the given data.

Type Aliasesยง

ReplyParsingFunction
A type alias for reply parsers (matches the signature of TryParseFd).