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