RustFxcontainers.sys.mjs
- class RustFxcontainers.sys.Container()
A container as the embedder sees it.
- RustFxcontainers.sys.Container.color
- RustFxcontainers.sys.Container.icon
- RustFxcontainers.sys.Container.isPublic
type: boolean
- RustFxcontainers.sys.Container.label
- RustFxcontainers.sys.Container.policyId
type: string
- RustFxcontainers.sys.Container.userContextId
type: number
- class RustFxcontainers.sys.ContainerColor()
The colors a container can carry.
A stored document holds the name, not the variant, and the same caveats as [ContainerIcon] apply. Legacy names are not variants: they are resolved to their canonical replacement by [resolve_color].
- class RustFxcontainers.sys.ContainerIcon()
The icons a container can carry. The set is fixed, so a container cannot end up with an icon the embedder has no artwork for.
A stored document holds the name, not the variant: one written by a newer Firefox can carry an icon this crate does not know, which reads back as None and is left in the document untouched.
- class RustFxcontainers.sys.ContainerLabel()
How a container gets its label.
- RustFxcontainers.sys.ContainerLabel.Banking
- RustFxcontainers.sys.ContainerLabel.Name
- RustFxcontainers.sys.ContainerLabel.Personal
- RustFxcontainers.sys.ContainerLabel.Shopping
- RustFxcontainers.sys.ContainerLabel.Work
- class RustFxcontainers.sys.DefaultIdentity()
One of the default containers the store was opened with, shipped or supplied by the embedder. Enterprise policy can replace the shipped set, and names its containers rather than localizing them, so its entries carry a [ContainerLabel::Name].
They seed a fresh store, and they label the default containers the user has not renamed: that label is never stored, so that renaming the string behind it does not need a migration.
- RustFxcontainers.sys.DefaultIdentity.color
- RustFxcontainers.sys.DefaultIdentity.icon
- RustFxcontainers.sys.DefaultIdentity.label
- class RustFxcontainers.sys.EmptyName()
EmptyName
- class RustFxcontainers.sys.EmptyPolicyId()
EmptyPolicyId
- class RustFxcontainers.sys.IdSpaceExhausted()
IdSpaceExhausted
- class RustFxcontainers.sys.InitError()
Why a store could not be opened.
- class RustFxcontainers.sys.InvalidSite()
InvalidSite
- class RustFxcontainers.sys.Malformed()
Carried as text rather than as a serde_json::Error, to keep the serialization library out of the public surface.
- class RustFxcontainers.sys.NoSuchContainer()
NoSuchContainer
- class RustFxcontainers.sys.StoreError()
A mutation that could not be applied. The store is left untouched.
- class RustFxcontainers.sys.UnsupportedVersion()
UnsupportedVersion
- RustFxcontainers.sys.colorCode(color, nova)
colorCode
- Arguments:
nova (boolean)
- Returns:
string
- RustFxcontainers.sys.colorFromName(name)
colorFromName
- Arguments:
name (string)
- Returns:
- RustFxcontainers.sys.colorGeckoL10nId(color)
colorGeckoL10nId
- Returns:
string
- RustFxcontainers.sys.colorName(color)
colorName
- Returns:
string
- RustFxcontainers.sys.containerColorAliases()
containerColorAliases
- Returns:
Map
- RustFxcontainers.sys.containerColors()
containerColors
- Returns:
- RustFxcontainers.sys.containerIcons()
containerIcons
- Returns:
- RustFxcontainers.sys.iconFromName(name)
iconFromName
- Arguments:
name (string)
- Returns:
- RustFxcontainers.sys.iconGeckoL10nId(icon)
iconGeckoL10nId
- Returns:
string
- RustFxcontainers.sys.iconName(icon)
iconName
- Returns:
string
- RustFxcontainers.sys.labelGeckoL10nId(label)
labelGeckoL10nId
- Returns:
string
- RustFxcontainers.sys.latestVersion()
latestVersion
- Returns:
number
- RustFxcontainers.sys.maxUserContextId()
maxUserContextId
- Returns:
number
- RustFxcontainers.sys.normalizeSite(site)
Lower cased, IDN-encoded host, or None when site cannot be bound to a container.
- Arguments:
site (string)
- Returns:
string
- RustFxcontainers.sys.resolveColor(name)
resolveColor
- Arguments:
name (string)
- Returns:
string