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ยง
- Extension
Information - Information about a X11 extension.
- Request
Header - 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ยง
- ExtInfo
Provider - Trait to provide information about extensions.
- ReplyF
DsRequest - A X11 request that has a reply with FDs
- Reply
Request - 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.
- TryIntoU
Size ๐ - Wrapper around TryInto that produces a ParseError.
- TryParse
- A type implementing this trait can be parsed from some raw bytes.
- TryParse
Fd - A type implementing this trait can be parsed from some raw bytes and a list of fds.
- Void
Request - 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ยง
- Reply
Parsing Function - A type alias for reply parsers (matches the signature of TryParseFd).