pub struct SecureChannelEventLoop<T> { /* private fields */ }Expand description
Event loop for a secure channel. This must be polled to make progress.
Implementations§
Source§impl<T: Transport + Send + Sync + 'static> SecureChannelEventLoop<T>
impl<T: Transport + Send + Sync + 'static> SecureChannelEventLoop<T>
Sourcepub async fn poll(&mut self) -> TransportPollResult
pub async fn poll(&mut self) -> TransportPollResult
Poll the channel, processing any pending incoming or outgoing messages and returning the action that was taken.
Sourcepub fn connected_url(&self) -> &str
pub fn connected_url(&self) -> &str
Get the URL of the connected server. This was either the URL used to establish the connection, or the URL reported by the server in ReverseHello.
Auto Trait Implementations§
impl<T> Freeze for SecureChannelEventLoop<T>where
T: Freeze,
impl<T> RefUnwindSafe for SecureChannelEventLoop<T>where
T: RefUnwindSafe,
impl<T> Send for SecureChannelEventLoop<T>where
T: Send,
impl<T> Sync for SecureChannelEventLoop<T>where
T: Sync,
impl<T> Unpin for SecureChannelEventLoop<T>where
T: Unpin,
impl<T> UnsafeUnpin for SecureChannelEventLoop<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for SecureChannelEventLoop<T>where
T: UnwindSafe,
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