pub struct SessionRpcManagedSettings<'a> { /* private fields */ }Expand description
session.managedSettings.* RPCs.
Implementations§
Source§impl<'a> SessionRpcManagedSettings<'a>
impl<'a> SessionRpcManagedSettings<'a>
Sourcepub async fn get(&self) -> Result<ManagedSettingsResolvedData, Error>
pub async fn get(&self) -> Result<ManagedSettingsResolvedData, Error>
Waits for the live session’s in-flight managed-settings application, then returns the retained effective snapshot used by runtime enforcement and by session.managed_settings_resolved. It does not perform another account, device, or server resolution, and rejects when resolution has not produced a snapshot.
Wire method: session.managedSettings.get.
§Returns
Enterprise managed-settings resolution: the effective managed settings the session applied and which channels contributed, so SDK clients can show users what is enterprise-managed. Fires whenever managed policy is (re)applied — at session start, on resume, and on account switch. This is an ephemeral live snapshot (delivered to subscribers but not persisted to the session event log), because at session start it resolves before session.start is emitted. Device values take precedence over server values, then the policy helper, per ordinary key, while permissions compose restrictively across device, server, policy-helper, and SDK-client layers. The account-scoped getManagedSettings() API does not include session-local client injection. Marked experimental while the managed-settings surface stabilizes.
Experimental. This API is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases. Pin both the SDK and CLI versions if your code depends on it.