Struct rivet_matchmaker::input::FindLobbyInput
source · [−]#[non_exhaustive]pub struct FindLobbyInput {
pub game_modes: Option<Vec<String>>,
pub regions: Option<Vec<String>>,
pub prevent_auto_create_lobby: Option<bool>,
pub captcha: Option<CaptchaConfig>,
pub origin: Option<String>,
}Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.game_modes: Option<Vec<String>>Game modes to match lobbies against.
regions: Option<Vec<String>>Regions to match lobbies against. If not specified, the optimal region will be determined and will attempt to find lobbies in that region.
prevent_auto_create_lobby: Option<bool>Prevents a new lobby from being created when finding a lobby. If no lobby is found, a MATCHMAKER_LOBBY_NOT_FOUND error will be thrown.
captcha: Option<CaptchaConfig>Methods to verify a captcha.
origin: Option<String>Implementations
sourceimpl FindLobbyInput
impl FindLobbyInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<FindLobby, ()>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<FindLobby, ()>, BuildError>
Consumes the builder and constructs an Operation<FindLobby>
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture FindLobbyInput
sourceimpl FindLobbyInput
impl FindLobbyInput
sourcepub fn game_modes(&self) -> Option<&[String]>
pub fn game_modes(&self) -> Option<&[String]>
Game modes to match lobbies against.
sourcepub fn regions(&self) -> Option<&[String]>
pub fn regions(&self) -> Option<&[String]>
Regions to match lobbies against. If not specified, the optimal region will be determined and will attempt to find lobbies in that region.
sourcepub fn prevent_auto_create_lobby(&self) -> Option<bool>
pub fn prevent_auto_create_lobby(&self) -> Option<bool>
Prevents a new lobby from being created when finding a lobby. If no lobby is found, a MATCHMAKER_LOBBY_NOT_FOUND error will be thrown.
sourcepub fn captcha(&self) -> Option<&CaptchaConfig>
pub fn captcha(&self) -> Option<&CaptchaConfig>
Methods to verify a captcha.
pub fn origin(&self) -> Option<&str>
Trait Implementations
sourceimpl Clone for FindLobbyInput
impl Clone for FindLobbyInput
sourcefn clone(&self) -> FindLobbyInput
fn clone(&self) -> FindLobbyInput
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for FindLobbyInput
impl Debug for FindLobbyInput
sourceimpl PartialEq<FindLobbyInput> for FindLobbyInput
impl PartialEq<FindLobbyInput> for FindLobbyInput
sourcefn eq(&self, other: &FindLobbyInput) -> bool
fn eq(&self, other: &FindLobbyInput) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &FindLobbyInput) -> bool
fn ne(&self, other: &FindLobbyInput) -> bool
This method tests for !=.
impl StructuralPartialEq for FindLobbyInput
Auto Trait Implementations
impl RefUnwindSafe for FindLobbyInput
impl Send for FindLobbyInput
impl Sync for FindLobbyInput
impl Unpin for FindLobbyInput
impl UnwindSafe for FindLobbyInput
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more