Struct playit_agent_core::tunnel::control::AuthenticatedControl
source · pub struct AuthenticatedControl<A: AuthenticationProvider, IO: PacketIO> { /* private fields */ }Implementations§
source§impl<A: AuthenticationProvider, IO: PacketIO> AuthenticatedControl<A, IO>
impl<A: AuthenticationProvider, IO: PacketIO> AuthenticatedControl<A, IO>
pub async fn send_keep_alive( &mut self, request_id: u64, ) -> Result<(), ControlError>
pub async fn send_setup_udp_channel( &mut self, request_id: u64, ) -> Result<(), ControlError>
pub async fn send_ping( &mut self, request_id: u64, now: u64, ) -> Result<(), ControlError>
pub fn get_expire_at(&self) -> u64
pub fn is_expired(&self) -> bool
pub fn set_expired(&mut self)
pub async fn authenticate(&mut self) -> Result<(), SetupError>
pub fn into_requires_auth(self) -> ConnectedControl<IO>
pub async fn recv_feed_msg(&mut self) -> Result<ControlFeed, ControlError>
Auto Trait Implementations§
impl<A, IO> Freeze for AuthenticatedControl<A, IO>where
A: Freeze,
impl<A, IO> RefUnwindSafe for AuthenticatedControl<A, IO>where
A: RefUnwindSafe,
IO: RefUnwindSafe,
impl<A, IO> Send for AuthenticatedControl<A, IO>
impl<A, IO> Sync for AuthenticatedControl<A, IO>
impl<A, IO> Unpin for AuthenticatedControl<A, IO>where
A: Unpin,
impl<A, IO> UnwindSafe for AuthenticatedControl<A, IO>where
A: UnwindSafe,
IO: RefUnwindSafe,
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