RustContextId.sys.mjs
- class RustContextId.sys.ContextIdComponent()
Top-level API for the context_id component
- RustContextId.sys.ContextIdComponent.forceRotation()
Regenerate the context ID.
- RustContextId.sys.ContextIdComponent.request(rotationDaysInS)
Return the current context ID string.
- Arguments:
rotationDaysInS (number)
- Returns:
Promise.<string> – }
- RustContextId.sys.ContextIdComponent.unsetCallback()
Unset the callbacks set during construction, and use a default no-op ContextIdCallback instead.
- static RustContextId.sys.ContextIdComponent.init(initContextId, creationTimestampS, runningInTestAutomation, callback)
Construct a new [ContextIDComponent].
If no creation timestamp is provided, the current time will be used.
- Arguments:
initContextId (string)
creationTimestampS (number)
runningInTestAutomation (boolean)
callback (ContextIdCallback)
- Returns:
ContextIdComponent –
- class RustContextId.sys.Other()
Other