Enum x11rb_protocol::protocol::Request
source · [−]#[non_exhaustive]
pub enum Request<'input> {
Show 126 variants
Unknown(RequestHeader, Cow<'input, [u8]>),
CreateWindow(CreateWindowRequest<'input>),
ChangeWindowAttributes(ChangeWindowAttributesRequest<'input>),
GetWindowAttributes(GetWindowAttributesRequest),
DestroyWindow(DestroyWindowRequest),
DestroySubwindows(DestroySubwindowsRequest),
ChangeSaveSet(ChangeSaveSetRequest),
ReparentWindow(ReparentWindowRequest),
MapWindow(MapWindowRequest),
MapSubwindows(MapSubwindowsRequest),
UnmapWindow(UnmapWindowRequest),
UnmapSubwindows(UnmapSubwindowsRequest),
ConfigureWindow(ConfigureWindowRequest<'input>),
CirculateWindow(CirculateWindowRequest),
GetGeometry(GetGeometryRequest),
QueryTree(QueryTreeRequest),
InternAtom(InternAtomRequest<'input>),
GetAtomName(GetAtomNameRequest),
ChangeProperty(ChangePropertyRequest<'input>),
DeleteProperty(DeletePropertyRequest),
GetProperty(GetPropertyRequest),
ListProperties(ListPropertiesRequest),
SetSelectionOwner(SetSelectionOwnerRequest),
GetSelectionOwner(GetSelectionOwnerRequest),
ConvertSelection(ConvertSelectionRequest),
SendEvent(SendEventRequest<'input>),
GrabPointer(GrabPointerRequest),
UngrabPointer(UngrabPointerRequest),
GrabButton(GrabButtonRequest),
UngrabButton(UngrabButtonRequest),
ChangeActivePointerGrab(ChangeActivePointerGrabRequest),
GrabKeyboard(GrabKeyboardRequest),
UngrabKeyboard(UngrabKeyboardRequest),
GrabKey(GrabKeyRequest),
UngrabKey(UngrabKeyRequest),
AllowEvents(AllowEventsRequest),
GrabServer(GrabServerRequest),
UngrabServer(UngrabServerRequest),
QueryPointer(QueryPointerRequest),
GetMotionEvents(GetMotionEventsRequest),
TranslateCoordinates(TranslateCoordinatesRequest),
WarpPointer(WarpPointerRequest),
SetInputFocus(SetInputFocusRequest),
GetInputFocus(GetInputFocusRequest),
QueryKeymap(QueryKeymapRequest),
OpenFont(OpenFontRequest<'input>),
CloseFont(CloseFontRequest),
QueryFont(QueryFontRequest),
QueryTextExtents(QueryTextExtentsRequest<'input>),
ListFonts(ListFontsRequest<'input>),
ListFontsWithInfo(ListFontsWithInfoRequest<'input>),
SetFontPath(SetFontPathRequest<'input>),
GetFontPath(GetFontPathRequest),
CreatePixmap(CreatePixmapRequest),
FreePixmap(FreePixmapRequest),
CreateGC(CreateGCRequest<'input>),
ChangeGC(ChangeGCRequest<'input>),
CopyGC(CopyGCRequest),
SetDashes(SetDashesRequest<'input>),
SetClipRectangles(SetClipRectanglesRequest<'input>),
FreeGC(FreeGCRequest),
ClearArea(ClearAreaRequest),
CopyArea(CopyAreaRequest),
CopyPlane(CopyPlaneRequest),
PolyPoint(PolyPointRequest<'input>),
PolyLine(PolyLineRequest<'input>),
PolySegment(PolySegmentRequest<'input>),
PolyRectangle(PolyRectangleRequest<'input>),
PolyArc(PolyArcRequest<'input>),
FillPoly(FillPolyRequest<'input>),
PolyFillRectangle(PolyFillRectangleRequest<'input>),
PolyFillArc(PolyFillArcRequest<'input>),
PutImage(PutImageRequest<'input>),
GetImage(GetImageRequest),
PolyText8(PolyText8Request<'input>),
PolyText16(PolyText16Request<'input>),
ImageText8(ImageText8Request<'input>),
ImageText16(ImageText16Request<'input>),
CreateColormap(CreateColormapRequest),
FreeColormap(FreeColormapRequest),
CopyColormapAndFree(CopyColormapAndFreeRequest),
InstallColormap(InstallColormapRequest),
UninstallColormap(UninstallColormapRequest),
ListInstalledColormaps(ListInstalledColormapsRequest),
AllocColor(AllocColorRequest),
AllocNamedColor(AllocNamedColorRequest<'input>),
AllocColorCells(AllocColorCellsRequest),
AllocColorPlanes(AllocColorPlanesRequest),
FreeColors(FreeColorsRequest<'input>),
StoreColors(StoreColorsRequest<'input>),
StoreNamedColor(StoreNamedColorRequest<'input>),
QueryColors(QueryColorsRequest<'input>),
LookupColor(LookupColorRequest<'input>),
CreateCursor(CreateCursorRequest),
CreateGlyphCursor(CreateGlyphCursorRequest),
FreeCursor(FreeCursorRequest),
RecolorCursor(RecolorCursorRequest),
QueryBestSize(QueryBestSizeRequest),
QueryExtension(QueryExtensionRequest<'input>),
ListExtensions(ListExtensionsRequest),
ChangeKeyboardMapping(ChangeKeyboardMappingRequest<'input>),
GetKeyboardMapping(GetKeyboardMappingRequest),
ChangeKeyboardControl(ChangeKeyboardControlRequest<'input>),
GetKeyboardControl(GetKeyboardControlRequest),
Bell(BellRequest),
ChangePointerControl(ChangePointerControlRequest),
GetPointerControl(GetPointerControlRequest),
SetScreenSaver(SetScreenSaverRequest),
GetScreenSaver(GetScreenSaverRequest),
ChangeHosts(ChangeHostsRequest<'input>),
ListHosts(ListHostsRequest),
SetAccessControl(SetAccessControlRequest),
SetCloseDownMode(SetCloseDownModeRequest),
KillClient(KillClientRequest),
RotateProperties(RotatePropertiesRequest<'input>),
ForceScreenSaver(ForceScreenSaverRequest),
SetPointerMapping(SetPointerMappingRequest<'input>),
GetPointerMapping(GetPointerMappingRequest),
SetModifierMapping(SetModifierMappingRequest<'input>),
GetModifierMapping(GetModifierMappingRequest),
NoOperation(NoOperationRequest),
BigreqEnable(EnableRequest),
GeQueryVersion(QueryVersionRequest),
XcMiscGetVersion(GetVersionRequest),
XcMiscGetXIDRange(GetXIDRangeRequest),
XcMiscGetXIDList(GetXIDListRequest),
}
Expand description
Enumeration of all possible X11 requests.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unknown(RequestHeader, Cow<'input, [u8]>)
CreateWindow(CreateWindowRequest<'input>)
ChangeWindowAttributes(ChangeWindowAttributesRequest<'input>)
GetWindowAttributes(GetWindowAttributesRequest)
DestroyWindow(DestroyWindowRequest)
DestroySubwindows(DestroySubwindowsRequest)
ChangeSaveSet(ChangeSaveSetRequest)
ReparentWindow(ReparentWindowRequest)
MapWindow(MapWindowRequest)
MapSubwindows(MapSubwindowsRequest)
UnmapWindow(UnmapWindowRequest)
UnmapSubwindows(UnmapSubwindowsRequest)
ConfigureWindow(ConfigureWindowRequest<'input>)
CirculateWindow(CirculateWindowRequest)
GetGeometry(GetGeometryRequest)
QueryTree(QueryTreeRequest)
InternAtom(InternAtomRequest<'input>)
GetAtomName(GetAtomNameRequest)
ChangeProperty(ChangePropertyRequest<'input>)
DeleteProperty(DeletePropertyRequest)
GetProperty(GetPropertyRequest)
ListProperties(ListPropertiesRequest)
SetSelectionOwner(SetSelectionOwnerRequest)
GetSelectionOwner(GetSelectionOwnerRequest)
ConvertSelection(ConvertSelectionRequest)
SendEvent(SendEventRequest<'input>)
GrabPointer(GrabPointerRequest)
UngrabPointer(UngrabPointerRequest)
GrabButton(GrabButtonRequest)
UngrabButton(UngrabButtonRequest)
ChangeActivePointerGrab(ChangeActivePointerGrabRequest)
GrabKeyboard(GrabKeyboardRequest)
UngrabKeyboard(UngrabKeyboardRequest)
GrabKey(GrabKeyRequest)
UngrabKey(UngrabKeyRequest)
AllowEvents(AllowEventsRequest)
GrabServer(GrabServerRequest)
UngrabServer(UngrabServerRequest)
QueryPointer(QueryPointerRequest)
GetMotionEvents(GetMotionEventsRequest)
TranslateCoordinates(TranslateCoordinatesRequest)
WarpPointer(WarpPointerRequest)
SetInputFocus(SetInputFocusRequest)
GetInputFocus(GetInputFocusRequest)
QueryKeymap(QueryKeymapRequest)
OpenFont(OpenFontRequest<'input>)
CloseFont(CloseFontRequest)
QueryFont(QueryFontRequest)
QueryTextExtents(QueryTextExtentsRequest<'input>)
ListFonts(ListFontsRequest<'input>)
ListFontsWithInfo(ListFontsWithInfoRequest<'input>)
SetFontPath(SetFontPathRequest<'input>)
GetFontPath(GetFontPathRequest)
CreatePixmap(CreatePixmapRequest)
FreePixmap(FreePixmapRequest)
CreateGC(CreateGCRequest<'input>)
ChangeGC(ChangeGCRequest<'input>)
CopyGC(CopyGCRequest)
SetDashes(SetDashesRequest<'input>)
SetClipRectangles(SetClipRectanglesRequest<'input>)
FreeGC(FreeGCRequest)
ClearArea(ClearAreaRequest)
CopyArea(CopyAreaRequest)
CopyPlane(CopyPlaneRequest)
PolyPoint(PolyPointRequest<'input>)
PolyLine(PolyLineRequest<'input>)
PolySegment(PolySegmentRequest<'input>)
PolyRectangle(PolyRectangleRequest<'input>)
PolyArc(PolyArcRequest<'input>)
FillPoly(FillPolyRequest<'input>)
PolyFillRectangle(PolyFillRectangleRequest<'input>)
PolyFillArc(PolyFillArcRequest<'input>)
PutImage(PutImageRequest<'input>)
GetImage(GetImageRequest)
PolyText8(PolyText8Request<'input>)
PolyText16(PolyText16Request<'input>)
ImageText8(ImageText8Request<'input>)
ImageText16(ImageText16Request<'input>)
CreateColormap(CreateColormapRequest)
FreeColormap(FreeColormapRequest)
CopyColormapAndFree(CopyColormapAndFreeRequest)
InstallColormap(InstallColormapRequest)
UninstallColormap(UninstallColormapRequest)
ListInstalledColormaps(ListInstalledColormapsRequest)
AllocColor(AllocColorRequest)
AllocNamedColor(AllocNamedColorRequest<'input>)
AllocColorCells(AllocColorCellsRequest)
AllocColorPlanes(AllocColorPlanesRequest)
FreeColors(FreeColorsRequest<'input>)
StoreColors(StoreColorsRequest<'input>)
StoreNamedColor(StoreNamedColorRequest<'input>)
QueryColors(QueryColorsRequest<'input>)
LookupColor(LookupColorRequest<'input>)
CreateCursor(CreateCursorRequest)
CreateGlyphCursor(CreateGlyphCursorRequest)
FreeCursor(FreeCursorRequest)
RecolorCursor(RecolorCursorRequest)
QueryBestSize(QueryBestSizeRequest)
QueryExtension(QueryExtensionRequest<'input>)
ListExtensions(ListExtensionsRequest)
ChangeKeyboardMapping(ChangeKeyboardMappingRequest<'input>)
GetKeyboardMapping(GetKeyboardMappingRequest)
ChangeKeyboardControl(ChangeKeyboardControlRequest<'input>)
GetKeyboardControl(GetKeyboardControlRequest)
Bell(BellRequest)
ChangePointerControl(ChangePointerControlRequest)
GetPointerControl(GetPointerControlRequest)
SetScreenSaver(SetScreenSaverRequest)
GetScreenSaver(GetScreenSaverRequest)
ChangeHosts(ChangeHostsRequest<'input>)
ListHosts(ListHostsRequest)
SetAccessControl(SetAccessControlRequest)
SetCloseDownMode(SetCloseDownModeRequest)
KillClient(KillClientRequest)
RotateProperties(RotatePropertiesRequest<'input>)
ForceScreenSaver(ForceScreenSaverRequest)
SetPointerMapping(SetPointerMappingRequest<'input>)
GetPointerMapping(GetPointerMappingRequest)
SetModifierMapping(SetModifierMappingRequest<'input>)
GetModifierMapping(GetModifierMappingRequest)
NoOperation(NoOperationRequest)
BigreqEnable(EnableRequest)
GeQueryVersion(QueryVersionRequest)
XcMiscGetVersion(GetVersionRequest)
XcMiscGetXIDRange(GetXIDRangeRequest)
XcMiscGetXIDList(GetXIDListRequest)
Implementations
sourceimpl<'input> Request<'input>
impl<'input> Request<'input>
pub fn parse(
header: RequestHeader,
body: &'input [u8],
fds: &mut Vec<RawFdContainer>,
ext_info_provider: &dyn ExtInfoProvider
) -> Result<Self, ParseError>
sourcepub fn reply_parser(&self) -> Option<ReplyParsingFunction>
pub fn reply_parser(&self) -> Option<ReplyParsingFunction>
Get the matching reply parser (if any) for this request.
For Request::Unknown
, None
is also returned.
sourcepub fn into_owned(self) -> Request<'static>
pub fn into_owned(self) -> Request<'static>
Convert this Request into an owned version with no borrows.
Trait Implementations
Auto Trait Implementations
impl<'input> RefUnwindSafe for Request<'input>
impl<'input> Send for Request<'input>
impl<'input> Sync for Request<'input>
impl<'input> Unpin for Request<'input>
impl<'input> UnwindSafe for Request<'input>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more