#[non_exhaustive]
pub enum Request<'input> {
Show 126 variants Unknown(RequestHeaderCow<'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(RequestHeaderCow<'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

Get the matching reply parser (if any) for this request. For Request::Unknown, None is also returned.

Convert this Request into an owned version with no borrows.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.