Expand description
Token sources for the LiveKit Rust SDK.
A token source procures the credentials — server URL and participant
token — needed to join a LiveKit room. Construct one via the
literal / endpoint / development_token_server factory
functions, or implement TokenSourceFixed / TokenSourceConfigurable
to plug in a custom credential backend.
Structs§
- Token
Source Development Token Server - The return type of
development_token_server. - Token
Source Endpoint - The return type of
endpoint. - Token
Source Fetch Options - Per-call overrides used to parameterize a token request.
- Token
Source Literal - The return type of
literal. - Token
Source Response - The credentials returned by a token source: the server to connect to and the participant token to authenticate with.
Enums§
- Token
Source Error - Errors returned when procuring credentials from a token source.
Traits§
- Token
Source Configurable - A token source that generates credentials from per-call
TokenSourceFetchOptions(room name, participant identity, agent dispatch, …). - Token
Source Fixed - A token source whose credentials are not parameterized:
fetchtakes no options and every call resolves the same way.
Functions§
- development_
token_ server - Creates a token source that queries a LiveKit development token server for credentials, for quick prototyping / getting-started use cases.
- endpoint
- Creates a token source that fetches credentials from the given URL using the standard token endpoint format.
- literal
- Creates a token source holding a single, literal set of credentials, returned as-is on every fetch.
Type Aliases§
- Token
Source Result - Result alias used by all token source operations.