pub struct NativeV2SignalingSlot { /* private fields */ }Expand description
One-time, fail-closed signaling installation point for native hosts whose process is created before user authentication completes. Installation may happen exactly once; replacement requires closing and rebuilding the capability/runtime so this cannot become a shadow lifecycle owner.
Implementations§
Trait Implementations§
Source§impl Default for NativeV2SignalingSlot
impl Default for NativeV2SignalingSlot
Source§fn default() -> NativeV2SignalingSlot
fn default() -> NativeV2SignalingSlot
Returns the “default value” for a type. Read more
Source§impl SignalingBackend for NativeV2SignalingSlot
impl SignalingBackend for NativeV2SignalingSlot
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 NativeV2SignalingSlot
impl !RefUnwindSafe for NativeV2SignalingSlot
impl !UnwindSafe for NativeV2SignalingSlot
impl Send for NativeV2SignalingSlot
impl Sync for NativeV2SignalingSlot
impl Unpin for NativeV2SignalingSlot
impl UnsafeUnpin for NativeV2SignalingSlot
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more