pub struct GatewayRequiredSignalingBackend;Expand description
Fail-closed default for runtimes whose host has not supplied a managed coordination provider.
Shipping OpenRTC builds no longer create a Firestore or RTDB backend from a project id. Browser and Tauri products use the Cloudflare gateway adapter; standalone Rust hosts must inject a provider or submit externally obtained desired peers to the Rust lifecycle owner.
Trait Implementations§
Source§impl SignalingBackend for GatewayRequiredSignalingBackend
impl SignalingBackend for GatewayRequiredSignalingBackend
fn update_presence<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'async_trait>(
&'life0 self,
_user_id: &'life1 str,
_local_node_id: &'life2 str,
_ticket_str: &'life3 str,
_is_online: bool,
_name: &'life4 str,
_ttl_ms: u64,
_metadata: Option<&'life5 str>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
'life5: 'async_trait,
fn set_offline<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_user_id: &'life1 str,
_local_node_id: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Source§fn update_live_presence<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'async_trait>(
&'life0 self,
_user_id: &'life1 str,
_local_node_id: &'life2 str,
_ticket_str: &'life3 str,
_name: &'life4 str,
_metadata: Option<&'life5 str>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
'life5: 'async_trait,
fn update_live_presence<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'async_trait>(
&'life0 self,
_user_id: &'life1 str,
_local_node_id: &'life2 str,
_ticket_str: &'life3 str,
_name: &'life4 str,
_metadata: Option<&'life5 str>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
'life5: 'async_trait,
Publish hot liveness/ticket state for a device through the configured
provider-neutral coordination implementation.
Source§fn set_live_presence_offline<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_user_id: &'life1 str,
_local_node_id: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn set_live_presence_offline<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_user_id: &'life1 str,
_local_node_id: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Mark the managed live-presence plane offline.
fn update_device<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
_user_id: &'life1 str,
_device_id: &'life2 str,
_device_name: Option<&'life3 str>,
_capabilities: Option<DeviceCapabilities>,
_metadata: Option<&'life4 str>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
fn delete_device<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_user_id: &'life1 str,
_device_id: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Source§fn set_excluded_peers<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_user_id: &'life1 str,
_local_node_id: &'life2 str,
_excluded_peers: &'life3 [String],
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn set_excluded_peers<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_user_id: &'life1 str,
_local_node_id: &'life2 str,
_excluded_peers: &'life3 [String],
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Update the
excludedPeers list on the local device’s presence document.
Called on disconnect (add remote_device_id) and reconnect (remove it).fn search_devices<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_user_id: &'life1 str,
_exclude_node_id: Option<&'life2 str>,
) -> Pin<Box<dyn Future<Output = Result<Vec<Device>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn list_devices<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_user_id: &'life1 str,
_exclude_node_id: Option<&'life2 str>,
) -> Pin<Box<dyn Future<Output = Result<Vec<Device>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn send_message<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'async_trait>(
&'life0 self,
_sender_id: &'life1 str,
_target_id: &'life2 str,
_payload: &'life3 str,
_state: Option<&'life4 str>,
_reply_payload: Option<&'life5 str>,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
'life5: 'async_trait,
fn subscribe_devices<'life0, 'life1, 'async_trait>(
&'life0 self,
_user_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<BoxStream<'static, Result<Vec<DeviceEvent>>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn create_session<'life0, 'async_trait>(
&'life0 self,
_session: SignalingSession,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn update_session<'life0, 'life1, 'async_trait>(
&'life0 self,
_session_id: &'life1 str,
_update_data: Value,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn subscribe_sessions<'life0, 'life1, 'async_trait>(
&'life0 self,
_local_device_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<BoxStream<'static, Result<Vec<SessionEvent>>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl Freeze for GatewayRequiredSignalingBackend
impl RefUnwindSafe for GatewayRequiredSignalingBackend
impl Send for GatewayRequiredSignalingBackend
impl Sync for GatewayRequiredSignalingBackend
impl Unpin for GatewayRequiredSignalingBackend
impl UnsafeUnpin for GatewayRequiredSignalingBackend
impl UnwindSafe for GatewayRequiredSignalingBackend
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