Struct bevy_steamworks::Matchmaking [−][src]
pub struct Matchmaking<Manager> { /* fields omitted */ }
Expand description
Access to the steam matchmaking interface
Implementations
pub fn request_lobby_list<F>(&self, cb: F) where
F: FnOnce(Result<Vec<LobbyId, Global>, SteamError>) + 'static + Send,
[src]pub fn create_lobby<F>(&self, ty: LobbyType, max_members: u32, cb: F) where
F: FnOnce(Result<LobbyId, SteamError>) + 'static + Send,
[src]
pub fn create_lobby<F>(&self, ty: LobbyType, max_members: u32, cb: F) where
F: FnOnce(Result<LobbyId, SteamError>) + 'static + Send,
[src]Attempts to create a new matchmaking lobby
The lobby with have the visibility of the of the passed
LobbyType
and a limit of max_members
inside it.
The max_members
may not be higher than 250.
Triggers
LobbyEnter
LobbyCreated
Tries to join the lobby with the given ID
Exits the passed lobby
Returns the steam id of the current owner of the passed lobby
Returns the number of players in a lobby.
Useful if you are not currently in the lobby
Returns a list of members currently in the lobby
Sets whether or not a lobby is joinable by other players. This always defaults to enabled for a new lobby.
If joining is disabled, then no players can join, even if they are a friend or have been invited.
Lobbies with joining disabled will not be returned from a lobby search.
Returns true on success, false if the current user doesn’t own the lobby.
Auto Trait Implementations
impl<Manager> RefUnwindSafe for Matchmaking<Manager> where
Manager: RefUnwindSafe,
impl<Manager> !Send for Matchmaking<Manager>
impl<Manager> !Sync for Matchmaking<Manager>
impl<Manager> Unpin for Matchmaking<Manager>
impl<Manager> UnwindSafe for Matchmaking<Manager> where
Manager: RefUnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V