#[non_exhaustive]pub enum ServerProtocol {
Project1999,
Quarm,
}Expand description
Wire protocol and client family used by a server.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Project1999
Project 1999’s Titanium/P99-V62 protocol.
Quarm
Project Quarm’s Windows TAKP/EQMac protocol.
Implementations§
Source§impl ServerProtocol
impl ServerProtocol
Sourcepub const fn default_endpoint(self) -> (&'static str, u16)
pub const fn default_endpoint(self) -> (&'static str, u16)
Return the public login endpoint normally used by this protocol.
Trait Implementations§
Source§impl Clone for ServerProtocol
impl Clone for ServerProtocol
impl Copy for ServerProtocol
Source§impl Debug for ServerProtocol
impl Debug for ServerProtocol
Source§impl Default for ServerProtocol
impl Default for ServerProtocol
Source§impl<'de> Deserialize<'de> for ServerProtocol
impl<'de> Deserialize<'de> for ServerProtocol
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
impl Eq for ServerProtocol
Source§impl From<ServerProtocol> for GameDialect
impl From<ServerProtocol> for GameDialect
Source§fn from(protocol: ServerProtocol) -> Self
fn from(protocol: ServerProtocol) -> Self
Converts to this type from the input type.
Source§impl FromStr for ServerProtocol
impl FromStr for ServerProtocol
Source§impl PartialEq for ServerProtocol
impl PartialEq for ServerProtocol
Source§impl Serialize for ServerProtocol
impl Serialize for ServerProtocol
impl StructuralPartialEq for ServerProtocol
Auto Trait Implementations§
impl Forget for ServerProtocol
impl Freeze for ServerProtocol
impl RefUnwindSafe for ServerProtocol
impl Send for ServerProtocol
impl Sync for ServerProtocol
impl Unpin for ServerProtocol
impl UnsafeUnpin for ServerProtocol
impl UnwindSafe for ServerProtocol
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