pub struct DefaultNetworkEventProcessor { /* private fields */ }Expand description
Default network event processor implementation
Implementations§
Source§impl DefaultNetworkEventProcessor
impl DefaultNetworkEventProcessor
pub fn new( signaling_client: Arc<dyn SignalingClient>, webrtc_coordinator: Option<Arc<WebRtcCoordinator>>, ) -> Self
pub fn new_with_debounce( signaling_client: Arc<dyn SignalingClient>, webrtc_coordinator: Option<Arc<WebRtcCoordinator>>, debounce_config: DebounceConfig, ) -> Self
Trait Implementations§
Source§impl NetworkEventProcessor for DefaultNetworkEventProcessor
impl NetworkEventProcessor for DefaultNetworkEventProcessor
Source§fn process_network_available<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn process_network_available<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Process network available event
Source§fn process_network_lost<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn process_network_lost<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Process network lost event
Source§fn process_network_type_changed<'life0, 'async_trait>(
&'life0 self,
is_wifi: bool,
is_cellular: bool,
) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn process_network_type_changed<'life0, 'async_trait>(
&'life0 self,
is_wifi: bool,
is_cellular: bool,
) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Process network type changed event
Source§fn cleanup_connections<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn cleanup_connections<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Proactively clean up all connections
Differs from process_network_lost():
- No debounce check (proactive calls always execute)
- Intended for app lifecycle management, not network event response
Source§fn process_network_recovery_action<'life0, 'async_trait>(
&'life0 self,
action: NetworkRecoveryAction,
) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn process_network_recovery_action<'life0, 'async_trait>(
&'life0 self,
action: NetworkRecoveryAction,
) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Process the final action selected from a settled event batch. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for DefaultNetworkEventProcessor
impl !UnwindSafe for DefaultNetworkEventProcessor
impl Freeze for DefaultNetworkEventProcessor
impl Send for DefaultNetworkEventProcessor
impl Sync for DefaultNetworkEventProcessor
impl Unpin for DefaultNetworkEventProcessor
impl UnsafeUnpin for DefaultNetworkEventProcessor
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
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