pub struct SteamP2PManager { /* private fields */ }
Implementations
sourceimpl SteamP2PManager
impl SteamP2PManager
sourcepub fn bind(client: Client<ClientManager>) -> Self
pub fn bind(client: Client<ClientManager>) -> Self
Starts a new thread to listen for P2P messages from Steam.
sourcepub fn connect(&self, config: SteamConnectionConfig) -> Peer
pub fn connect(&self, config: SteamConnectionConfig) -> Peer
sourcepub fn disconnect(&self, remote: SteamId)
pub fn disconnect(&self, remote: SteamId)
Disconnects the connection to a given SteamId if available.
Auto Trait Implementations
impl !RefUnwindSafe for SteamP2PManager
impl Send for SteamP2PManager
impl Sync for SteamP2PManager
impl Unpin for SteamP2PManager
impl !UnwindSafe for SteamP2PManager
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more