pub struct ControlPlane { /* private fields */ }Implementations§
Source§impl ControlPlane
impl ControlPlane
pub fn new( api_key: &str, assertion_provider: Arc<dyn AssertionProvider>, signer: Arc<dyn DeviceSigner>, certificate_store: Arc<dyn CertificateStore>, ) -> Result<Self>
Sourcepub fn anonymous(api_key: &str, signer: Arc<dyn DeviceSigner>) -> Result<Self>
pub fn anonymous(api_key: &str, signer: Arc<dyn DeviceSigner>) -> Result<Self>
Construct the API-key-only native prototype surface. Construction is
network-idle. A capability request occurs only when join_space,
join_room, or issue_ticket is awaited.
pub fn app_tag(&self) -> &str
pub fn with_testing_endpoints( self, control_plane: impl Into<String>, gateway: impl Into<String>, ) -> Result<Self>
pub async fn devices( &self, device_id: impl Into<String>, platform_type: impl Into<String>, options: DeviceOptions, ) -> Result<Devices>
pub async fn join_space( &self, id: impl Into<String>, platform_type: impl Into<String>, options: CapabilityOptions, ) -> Result<AnonymousCapability>
pub async fn join_room( &self, id: impl Into<String>, platform_type: impl Into<String>, options: impl Into<RoomOptions>, ) -> Result<AnonymousCapability>
Join a room as a developer-hosted authoritative service replica.
secret_key is sent only to the developer-server control-plane route;
it is never included in a gateway frame or exposed through TypeScript.
pub async fn issue_ticket( &self, id: impl Into<String>, platform_type: impl Into<String>, options: CapabilityOptions, ) -> Result<AnonymousCapability>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ControlPlane
impl !UnwindSafe for ControlPlane
impl Freeze for ControlPlane
impl Send for ControlPlane
impl Sync for ControlPlane
impl Unpin for ControlPlane
impl UnsafeUnpin for ControlPlane
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more