Enum discord_sdk::lobby::search::LobbySearchDistance
source · #[repr(u8)]pub enum LobbySearchDistance {
Local = 0,
Default = 1,
Extended = 2,
Global = 3,
}
Expand description
The search distance from the current user’s region, the LobbySearchDistance::Default
is to search in the current user’s region and adjacent regions.
Variants§
Local = 0
Within the same region
Default = 1
Within the same and adjacent regions
Extended = 2
Far distances, like US to EU
Global = 3
All regions
Trait Implementations§
source§impl Clone for LobbySearchDistance
impl Clone for LobbySearchDistance
source§fn clone(&self) -> LobbySearchDistance
fn clone(&self) -> LobbySearchDistance
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for LobbySearchDistance
impl Debug for LobbySearchDistance
source§impl Default for LobbySearchDistance
impl Default for LobbySearchDistance
source§impl<'de> Deserialize<'de> for LobbySearchDistance
impl<'de> Deserialize<'de> for LobbySearchDistance
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for LobbySearchDistance
impl PartialEq for LobbySearchDistance
source§fn eq(&self, other: &LobbySearchDistance) -> bool
fn eq(&self, other: &LobbySearchDistance) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LobbySearchDistance
impl Serialize for LobbySearchDistance
impl Copy for LobbySearchDistance
impl Eq for LobbySearchDistance
impl StructuralPartialEq for LobbySearchDistance
Auto Trait Implementations§
impl RefUnwindSafe for LobbySearchDistance
impl Send for LobbySearchDistance
impl Sync for LobbySearchDistance
impl Unpin for LobbySearchDistance
impl UnwindSafe for LobbySearchDistance
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