pub struct EnvelopeEncryptedConnection { /* private fields */ }Expand description
A connection that runs Steam’s channel encryption handshake on top of another connection.
Implementations§
Source§impl EnvelopeEncryptedConnection
impl EnvelopeEncryptedConnection
Sourcepub fn new(inner: Arc<dyn Connection>, universe: EUniverse) -> Self
pub fn new(inner: Arc<dyn Connection>, universe: EUniverse) -> Self
Creates a new envelope connection wrapping inner.
Sourcepub fn with_debug_network_listener(
inner: Arc<dyn Connection>,
universe: EUniverse,
debug_network_listener: Option<Arc<dyn DebugNetworkListener>>,
) -> Self
pub fn with_debug_network_listener( inner: Arc<dyn Connection>, universe: EUniverse, debug_network_listener: Option<Arc<dyn DebugNetworkListener>>, ) -> Self
Creates a new envelope connection that reports the handshake messages to
debug_network_listener.
Sourcepub fn subscribe_net_msg_received(&self) -> Receiver<NetMsgEventArgs>
pub fn subscribe_net_msg_received(&self) -> Receiver<NetMsgEventArgs>
Subscribes to the NetMsgReceived event.
Sourcepub fn subscribe_connected(&self) -> Receiver<()>
pub fn subscribe_connected(&self) -> Receiver<()>
Subscribes to the Connected event.
Sourcepub fn subscribe_disconnected(&self) -> Receiver<DisconnectedEventArgs>
pub fn subscribe_disconnected(&self) -> Receiver<DisconnectedEventArgs>
Subscribes to the Disconnected event.
Trait Implementations§
Source§impl ConnectionEvents for EnvelopeEncryptedConnection
impl ConnectionEvents for EnvelopeEncryptedConnection
Source§fn events(&self) -> UnboundedReceiver<ConnectionEvent>
fn events(&self) -> UnboundedReceiver<ConnectionEvent>
Subscribes to all three events as one stream. Read more
Source§fn net_msg_received(&self) -> Receiver<NetMsgEventArgs>
fn net_msg_received(&self) -> Receiver<NetMsgEventArgs>
Subscribes to the
NetMsgReceived event.Source§fn disconnected(&self) -> Receiver<DisconnectedEventArgs>
fn disconnected(&self) -> Receiver<DisconnectedEventArgs>
Subscribes to the
Disconnected event.Source§impl Debug for EnvelopeEncryptedConnection
impl Debug for EnvelopeEncryptedConnection
Source§impl IConnection for EnvelopeEncryptedConnection
impl IConnection for EnvelopeEncryptedConnection
Source§fn current_end_point(&self) -> Option<SocketAddr>
fn current_end_point(&self) -> Option<SocketAddr>
The remote endpoint of the current connection. Read more
Source§fn protocol_types(&self) -> ProtocolTypes
fn protocol_types(&self) -> ProtocolTypes
The type of communication protocol that this connection uses.
Source§fn connect<'life0, 'async_trait>(
&'life0 self,
end_point: SocketAddr,
timeout: Duration,
) -> Pin<Box<dyn Future<Output = Result<(), SteamError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn connect<'life0, 'async_trait>(
&'life0 self,
end_point: SocketAddr,
timeout: Duration,
) -> Pin<Box<dyn Future<Output = Result<(), SteamError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Connects to the specified endpoint.
Source§fn disconnect<'life0, 'async_trait>(
&'life0 self,
user_initiated: bool,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn disconnect<'life0, 'async_trait>(
&'life0 self,
user_initiated: bool,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Disconnects.
user_initiated is true when the caller asked for it.Auto Trait Implementations§
impl !RefUnwindSafe for EnvelopeEncryptedConnection
impl !UnwindSafe for EnvelopeEncryptedConnection
impl Freeze for EnvelopeEncryptedConnection
impl Send for EnvelopeEncryptedConnection
impl Sync for EnvelopeEncryptedConnection
impl Unpin for EnvelopeEncryptedConnection
impl UnsafeUnpin for EnvelopeEncryptedConnection
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