Trait x11rb::x11_utils::Request [−][src]
pub trait Request {
type Reply: Into<Reply> + TryParseFd;
fn parse_reply<'a>(
bytes: &'a [u8],
fds: &mut Vec<RawFdContainer>
) -> Result<(Reply, &'a [u8]), ParseError> { ... }
}
Expand description
A type implementing this trait is an X11 request.
Associated Types
type Reply: Into<Reply> + TryParseFd
type Reply: Into<Reply> + TryParseFd
The kind of reply that this request generates.
Provided methods
fn parse_reply<'a>(
bytes: &'a [u8],
fds: &mut Vec<RawFdContainer>
) -> Result<(Reply, &'a [u8]), ParseError>
fn parse_reply<'a>(
bytes: &'a [u8],
fds: &mut Vec<RawFdContainer>
) -> Result<(Reply, &'a [u8]), ParseError>
Parse a reply to this request.
The default implementation of this function uses Self::Reply::try_parse_fd
. There should
not be a reason why you need different behaviour.