Crate web_sys

source ·
Expand description

Raw API bindings for Web APIs

This is a procedurally generated crate from browser WebIDL which provides a binding to all APIs that browser provide on the web.

This crate by default contains very little when compiled as almost all of its exposed APIs are gated by Cargo features. The exhaustive list of features can be found in crates/web-sys/Cargo.toml, but the rule of thumb for web-sys is that each type has its own cargo feature (named after the type). Using an API requires enabling the features for all types used in the API, and APIs should mention in the documentation what features they require.

Modules

Structs

The AbortController object
The AbortSignal object
The AnalyserNode object
The Animation object
The AnimationEffect object
The AnimationEvent object
The AnimationPlaybackEvent object
The AnimationTimeline object
The Attr object
The AudioBuffer object
The AudioBufferSourceNode object
The AudioContext object
The AudioDestinationNode object
The AudioListener object
The AudioNode object
The AudioParam object
The AudioParamMap object
The AudioProcessingEvent object
The AudioScheduledSourceNode object
The AudioStreamTrack object
The AudioTrack object
The AudioTrackList object
The AudioWorklet object
The AudioWorkletGlobalScope object
The AudioWorkletNode object
The AudioWorkletProcessor object
The AuthenticatorAssertionResponse object
The AuthenticatorAttestationResponse object
The AuthenticatorResponse object
The BarProp object
The BaseAudioContext object
The BatteryManager object
The BeforeUnloadEvent object
The BiquadFilterNode object
The Blob object
The BlobEvent object
The BroadcastChannel object
The BrowserFeedWriter object
The Cache object
The CacheStorage object
The CanvasCaptureMediaStream object
The CanvasGradient object
The CanvasPattern object
The CanvasRenderingContext2D object
The CaretPosition object
The CDATASection object
The ChannelMergerNode object
The ChannelSplitterNode object
The CharacterData object
The CheckerboardReportService object
The ChromeWorker object
The Client object
The Clients object
The ClipboardEvent object
The CloseEvent object
The Comment object
The CompositionEvent object
The ConsoleInstance object
The ConstantSourceNode object
The ConvolverNode object
The Credential object
The CredentialsContainer object
The Crypto object
The CryptoKey object
The CSSAnimation object
The CSSConditionRule object
The CSSCounterStyleRule object
The CSSFontFaceRule object
The CSSFontFeatureValuesRule object
The CSSGroupingRule object
The CSSImportRule object
The CSSKeyframeRule object
The CSSKeyframesRule object
The CSSMediaRule object
The CSSNamespaceRule object
The CSSPageRule object
The CSSPseudoElement object
The CSSRule object
The CSSRuleList object
The CSSStyleDeclaration object
The CSSStyleRule object
The CSSStyleSheet object
The CSSSupportsRule object
The CSSTransition object
The CustomElementRegistry object
The CustomEvent object
The DataTransfer object
The DataTransferItem object
The DataTransferItemList object
The DedicatedWorkerGlobalScope object
The DelayNode object
The DeviceLightEvent object
The DeviceMotionEvent object
The DeviceOrientationEvent object
The DeviceProximityEvent object
The Directory object
The Document object
The DocumentFragment object
The DocumentTimeline object
The DocumentType object
The DOMError object
The DOMException object
The DOMImplementation object
The DOMMatrix object
The DOMMatrixReadOnly object
The DOMParser object
The DOMPoint object
The DOMPointReadOnly object
The DOMQuad object
The DOMRect object
The DOMRectList object
The DOMRectReadOnly object
The DOMRequest object
The DOMStringList object
The DOMStringMap object
The DOMTokenList object
The DragEvent object
The DynamicsCompressorNode object
The Element object
The ErrorEvent object
The Event object
The EventSource object
The EventTarget object
The ExtendableEvent object
The ExtendableMessageEvent object
The FetchEvent object
The FetchObserver object
The File object
The FileList object
The FileReader object
The FileReaderSync object
The FileSystem object
The FileSystemDirectoryEntry object
The FileSystemDirectoryReader object
The FileSystemEntry object
The FileSystemFileEntry object
The FocusEvent object
The FontFace object
The FontFaceSet object
The FontFaceSetLoadEvent object
The FormData object
The FuzzingFunctions object
The GainNode object
The Gamepad object
The GamepadAxisMoveEvent object
The GamepadButton object
The GamepadButtonEvent object
The GamepadEvent object
The GamepadHapticActuator object
The GamepadPose object
The GamepadServiceTest object
The HashChangeEvent object
The Headers object
The History object
The HTMLAllCollection object
The HTMLAnchorElement object
The HTMLAreaElement object
The HTMLAudioElement object
The HTMLBaseElement object
The HTMLBodyElement object
The HTMLBRElement object
The HTMLButtonElement object
The HTMLCanvasElement object
The HTMLCollection object
The HTMLDListElement object
The HTMLDataElement object
The HTMLDataListElement object
The HTMLDetailsElement object
The HTMLDialogElement object
The HTMLDirectoryElement object
The HTMLDivElement object
The HTMLDocument object
The HTMLElement object
The HTMLEmbedElement object
The HTMLFieldSetElement object
The HTMLFontElement object
The HTMLFormControlsCollection object
The HTMLFormElement object
The HTMLFrameElement object
The HTMLFrameSetElement object
The HTMLHeadElement object
The HTMLHeadingElement object
The HTMLHRElement object
The HTMLHtmlElement object
The HTMLIFrameElement object
The HTMLImageElement object
The HTMLInputElement object
The HTMLLabelElement object
The HTMLLegendElement object
The HTMLLIElement object
The HTMLLinkElement object
The HTMLMapElement object
The HTMLMediaElement object
The HTMLMenuElement object
The HTMLMenuItemElement object
The HTMLMetaElement object
The HTMLMeterElement object
The HTMLModElement object
The HTMLOListElement object
The HTMLObjectElement object
The HTMLOptGroupElement object
The HTMLOptionElement object
The HTMLOptionsCollection object
The HTMLOutputElement object
The HTMLParagraphElement object
The HTMLParamElement object
The HTMLPictureElement object
The HTMLPreElement object
The HTMLProgressElement object
The HTMLQuoteElement object
The HTMLScriptElement object
The HTMLSelectElement object
The HTMLSlotElement object
The HTMLSourceElement object
The HTMLSpanElement object
The HTMLStyleElement object
The HTMLTableCaptionElement object
The HTMLTableCellElement object
The HTMLTableColElement object
The HTMLTableElement object
The HTMLTableRowElement object
The HTMLTableSectionElement object
The HTMLTemplateElement object
The HTMLTextAreaElement object
The HTMLTimeElement object
The HTMLTitleElement object
The HTMLTrackElement object
The HTMLUListElement object
The HTMLUnknownElement object
The HTMLVideoElement object
The IDBCursor object
The IDBCursorWithValue object
The IDBDatabase object
The IDBFactory object
The IDBFileHandle object
The IDBFileRequest object
The IDBIndex object
The IDBKeyRange object
The IDBLocaleAwareKeyRange object
The IDBMutableFile object
The IDBObjectStore object
The IDBOpenDBRequest object
The IDBRequest object
The IDBTransaction object
The IDBVersionChangeEvent object
The IdleDeadline object
The IIRFilterNode object
The ImageBitmap object
The ImageBitmapRenderingContext object
The ImageCapture object
The ImageCaptureErrorEvent object
The ImageData object
The InputEvent object
The IntersectionObserver object
The IntersectionObserverEntry object
The KeyEvent object
The KeyboardEvent object
The KeyframeEffect object
The LocalMediaStream object
The Location object
The MediaCapabilities object
The MediaCapabilitiesInfo object
The MediaDeviceInfo object
The MediaDevices object
The MediaElementAudioSourceNode object
The MediaEncryptedEvent object
The MediaError object
The MediaKeyError object
The MediaKeyMessageEvent object
The MediaKeySession object
The MediaKeyStatusMap object
The MediaKeySystemAccess object
The MediaKeys object
The MediaList object
The MediaQueryList object
The MediaQueryListEvent object
The MediaRecorder object
The MediaRecorderErrorEvent object
The MediaSource object
The MediaStream object
The MediaStreamAudioDestinationNode object
The MediaStreamAudioSourceNode object
The MediaStreamEvent object
The MediaStreamTrack object
The MediaStreamTrackEvent object
The MessageChannel object
The MessageEvent object
The MessagePort object
The MIDIAccess object
The MIDIConnectionEvent object
The MIDIInput object
The MIDIInputMap object
The MIDIMessageEvent object
The MIDIOutput object
The MIDIOutputMap object
The MIDIPort object
The MimeType object
The MimeTypeArray object
The MouseEvent object
The MouseScrollEvent object
The MutationEvent object
The MutationObserver object
The MutationRecord object
The NamedNodeMap object
The Navigator object
The NetworkInformation object
The Node object
The NodeIterator object
The NodeList object
The Notification object
The NotificationEvent object
The OfflineAudioCompletionEvent object
The OfflineAudioContext object
The OfflineResourceList object
The OffscreenCanvas object
The OscillatorNode object
The PageTransitionEvent object
The PaintRequest object
The PaintRequestList object
The PaintWorkletGlobalScope object
The PannerNode object
The Path2D object
The PaymentAddress object
The PaymentMethodChangeEvent object
The PaymentRequestUpdateEvent object
The PaymentResponse object
The Performance object
The PerformanceEntry object
The PerformanceMark object
The PerformanceMeasure object
The PerformanceNavigation object
The PerformanceNavigationTiming object
The PerformanceObserver object
The PerformanceObserverEntryList object
The PerformanceResourceTiming object
The PerformanceServerTiming object
The PerformanceTiming object
The PeriodicWave object
The PermissionStatus object
The Permissions object
The Plugin object
The PluginArray object
The PointerEvent object
The PopStateEvent object
The PopupBlockedEvent object
The Presentation object
The PresentationAvailability object
The PresentationConnection object
The PresentationConnectionAvailableEvent object
The PresentationConnectionCloseEvent object
The PresentationConnectionList object
The PresentationReceiver object
The PresentationRequest object
The ProcessingInstruction object
The ProgressEvent object
The PromiseRejectionEvent object
The PublicKeyCredential object
The PushEvent object
The PushManager object
The PushMessageData object
The PushSubscription object
The PushSubscriptionOptions object
The RadioNodeList object
The Range object
The Request object
The Response object
The RTCCertificate object
The RTCDataChannel object
The RTCDataChannelEvent object
The RTCIceCandidate object
The RTCPeerConnection object
The RTCPeerConnectionIceEvent object
The RTCRtpReceiver object
The RTCRtpSender object
The RTCSessionDescription object
The RTCStatsReport object
The RTCTrackEvent object
The RTCDTMFSender object
The RTCDTMFToneChangeEvent object
The Screen object
The ScreenLuminance object
The ScreenOrientation object
The ScriptProcessorNode object
The ScrollAreaEvent object
The SecurityPolicyViolationEvent object
The Selection object
The ServiceWorker object
The ServiceWorkerContainer object
The ServiceWorkerGlobalScope object
The ServiceWorkerRegistration object
The ShadowRoot object
The SharedWorker object
The SharedWorkerGlobalScope object
The SourceBuffer object
The SourceBufferList object
The SpeechGrammar object
The SpeechGrammarList object
The SpeechRecognition object
The SpeechRecognitionAlternative object
The SpeechRecognitionError object
The SpeechRecognitionEvent object
The SpeechRecognitionResult object
The SpeechRecognitionResultList object
The SpeechSynthesis object
The SpeechSynthesisErrorEvent object
The SpeechSynthesisEvent object
The SpeechSynthesisUtterance object
The SpeechSynthesisVoice object
The StereoPannerNode object
The Storage object
The StorageEvent object
The StorageManager object
The StyleSheet object
The StyleSheetList object
The SubtleCrypto object
The SVGAngle object
The SVGAnimateElement object
The SVGAnimateMotionElement object
The SVGAnimateTransformElement object
The SVGAnimatedAngle object
The SVGAnimatedBoolean object
The SVGAnimatedEnumeration object
The SVGAnimatedInteger object
The SVGAnimatedLength object
The SVGAnimatedLengthList object
The SVGAnimatedNumber object
The SVGAnimatedNumberList object
The SVGAnimatedPreserveAspectRatio object
The SVGAnimatedRect object
The SVGAnimatedString object
The SVGAnimatedTransformList object
The SVGAnimationElement object
The SVGCircleElement object
The SVGClipPathElement object
The SVGComponentTransferFunctionElement object
The SVGDefsElement object
The SVGDescElement object
The SVGElement object
The SVGEllipseElement object
The SVGFilterElement object
The SVGForeignObjectElement object
The SVGGeometryElement object
The SVGGradientElement object
The SVGGraphicsElement object
The SVGImageElement object
The SVGLength object
The SVGLengthList object
The SVGLineElement object
The SVGLinearGradientElement object
The SVGMarkerElement object
The SVGMaskElement object
The SVGMatrix object
The SVGMetadataElement object
The SVGNumber object
The SVGNumberList object
The SVGPathElement object
The SVGPathSegList object
The SVGPatternElement object
The SVGPoint object
The SVGPointList object
The SVGPolygonElement object
The SVGPolylineElement object
The SVGPreserveAspectRatio object
The SVGRadialGradientElement object
The SVGRect object
The SVGRectElement object
The SVGScriptElement object
The SVGSetElement object
The SVGStopElement object
The SVGStringList object
The SVGStyleElement object
The SVGSwitchElement object
The SVGSymbolElement object
The SVGTextContentElement object
The SVGTextElement object
The SVGTextPathElement object
The SVGTextPositioningElement object
The SVGTitleElement object
The SVGTransform object
The SVGTransformList object
The SVGUnitTypes object
The SVGUseElement object
The SVGViewElement object
The SVGZoomAndPan object
The SVGAElement object
The SVGFEBlendElement object
The SVGFEColorMatrixElement object
The SVGFEComponentTransferElement object
The SVGFECompositeElement object
The SVGFEConvolveMatrixElement object
The SVGFEDiffuseLightingElement object
The SVGFEDisplacementMapElement object
The SVGFEDistantLightElement object
The SVGFEDropShadowElement object
The SVGFEFloodElement object
The SVGFEFuncAElement object
The SVGFEFuncBElement object
The SVGFEFuncGElement object
The SVGFEFuncRElement object
The SVGFEGaussianBlurElement object
The SVGFEImageElement object
The SVGFEMergeElement object
The SVGFEMergeNodeElement object
The SVGFEMorphologyElement object
The SVGFEOffsetElement object
The SVGFEPointLightElement object
The SVGFESpecularLightingElement object
The SVGFESpotLightElement object
The SVGFETileElement object
The SVGFETurbulenceElement object
The SVGGElement object
The SVGMPathElement object
The SVGSVGElement object
The SVGTSpanElement object
The TCPServerSocket object
The TCPServerSocketEvent object
The TCPSocket object
The TCPSocketErrorEvent object
The TCPSocketEvent object
The Text object
The TextDecoder object
The TextEncoder object
The TextMetrics object
The TextTrack object
The TextTrackCue object
The TextTrackCueList object
The TextTrackList object
The TimeEvent object
The TimeRanges object
The Touch object
The TouchEvent object
The TouchList object
The TrackEvent object
The TransitionEvent object
The TreeWalker object
The U2F object
The UIEvent object
The URL object
The URLSearchParams object
The UserProximityEvent object
The ValidityState object
The VideoPlaybackQuality object
The VideoStreamTrack object
The VideoTrack object
The VideoTrackList object
The VRDisplay object
The VRDisplayCapabilities object
The VREyeParameters object
The VRFieldOfView object
The VRFrameData object
The VRMockController object
The VRMockDisplay object
The VRPose object
The VRServiceTest object
The VRStageParameters object
The VRSubmitFrameResult object
The VTTCue object
The VTTRegion object
The WaveShaperNode object
The WebGL2RenderingContext object
The WebGLActiveInfo object
The WebGLBuffer object
The WebGLContextEvent object
The WebGLFramebuffer object
The WebGLProgram object
The WebGLQuery object
The WebGLRenderbuffer object
The WebGLRenderingContext object
The WebGLSampler object
The WebGLShader object
The WebGLShaderPrecisionFormat object
The WebGLSync object
The WebGLTexture object
The WebGLTransformFeedback object
The WebGLUniformLocation object
The WebGLVertexArrayObject object
The WebGPU object
The WebGPUAdapter object
The WebGPUAttachmentState object
The WebGPUBindGroup object
The WebGPUBindGroupLayout object
The WebGPUBindingType object
The WebGPUBlendFactor object
The WebGPUBlendOperation object
The WebGPUBlendState object
The WebGPUBuffer object
The WebGPUBufferUsage object
The WebGPUColorWriteBits object
The WebGPUCommandBuffer object
The WebGPUCommandEncoder object
The WebGPUCompareFunction object
The WebGPUComputePipeline object
The WebGPUDepthStencilState object
The WebGPUDevice object
The WebGPUFence object
The WebGPUFilterMode object
The WebGPUIndexFormat object
The WebGPUInputState object
The WebGPUInputStepMode object
The WebGPULoadOp object
The WebGPULogEntry object
The WebGPUPipelineLayout object
The WebGPUPrimitiveTopology object
The WebGPUQueue object
The WebGPURenderPipeline object
The WebGPUSampler object
The WebGPUShaderModule object
The WebGPUShaderStage object
The WebGPUShaderStageBit object
The WebGPUStencilOperation object
The WebGPUStoreOp object
The WebGPUSwapChain object
The WebGPUTexture object
The WebGPUTextureDimension object
The WebGPUTextureFormat object
The WebGPUTextureUsage object
The WebGPUTextureView object
The WebGPUVertexFormat object
The WebKitCSSMatrix object
The WebSocket object
The WheelEvent object
The Window object
The WindowClient object
The Worker object
The WorkerDebuggerGlobalScope object
The WorkerGlobalScope object
The WorkerLocation object
The WorkerNavigator object
The Worklet object
The WorkletGlobalScope object
The XPathExpression object
The XPathResult object
The XMLDocument object
The XMLHttpRequest object
The XMLHttpRequestEventTarget object
The XMLHttpRequestUpload object
The XMLSerializer object
The XSLTProcessor object

Enums

Functions

Getter for the Window object