pub struct AnonymousCapability {
pub principal_id: String,
pub handle: NativeCapabilityHandle,
/* private fields */
}Expand description
A backend-free native capability. Its install-bound principal and device identity come from the host-secure Ed25519 key, and the handle owns exactly one live avenue.
Fields§
§principal_id: String§handle: NativeCapabilityHandleImplementations§
Source§impl AnonymousCapability
impl AnonymousCapability
Sourcepub async fn compose_client(
&self,
builder: ClientBuilder,
) -> Result<Arc<Client>>
pub async fn compose_client( &self, builder: ClientBuilder, ) -> Result<Arc<Client>>
Compose the Rust peer-session owner for an authority-room consumer.
Join with RoomArchitectureMode::Authority first. No service secret or
JavaScript runtime is needed: the gateway supplies assigned routes and
receiver permissions to the same owner used by RoomAuthority.
Other avenue architectures are not supported by this composition helper.
pub fn relay_availability(&self) -> RelayAvailability
Sourcepub fn signaling(&self) -> Arc<dyn SignalingBackend> ⓘ
pub fn signaling(&self) -> Arc<dyn SignalingBackend> ⓘ
Install this one avenue in the shared Rust runtime. Capability/grant renewal remains internal and does not replace a healthy socket.
pub fn room_architecture(&self) -> Result<Option<RoomArchitectureSnapshot>>
pub fn subscribe_room_architecture( &self, ) -> Result<Receiver<Option<RoomArchitectureSnapshot>>>
Sourcepub fn media_connection(
&self,
client: Arc<Client>,
peer_id: impl Into<String>,
) -> Result<MediaConnection>
pub fn media_connection( &self, client: Arc<Client>, peer_id: impl Into<String>, ) -> Result<MediaConnection>
Return media already bound to this space, room, or ticket capability.
pub fn is_closed(&self) -> bool
pub async fn close(&self)
Auto Trait Implementations§
impl !RefUnwindSafe for AnonymousCapability
impl !UnwindSafe for AnonymousCapability
impl Freeze for AnonymousCapability
impl Send for AnonymousCapability
impl Sync for AnonymousCapability
impl Unpin for AnonymousCapability
impl UnsafeUnpin for AnonymousCapability
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