#[repr(u8)]pub enum JoinGameTypeValue {
NoSecret = 0,
SessionSecret = 1,
HostMigrationParticipantId = 2,
}Variants§
Implementations§
Source§impl JoinGameTypeValue
impl JoinGameTypeValue
pub const fn to_octet(&self) -> u8
Sourcepub fn to_stream(self, stream: &mut impl WriteOctetStream) -> Result<()>
pub fn to_stream(self, stream: &mut impl WriteOctetStream) -> Result<()>
§Errors
io::Error // TODO:
Sourcepub fn from_stream(stream: &mut impl ReadOctetStream) -> Result<Self>
pub fn from_stream(stream: &mut impl ReadOctetStream) -> Result<Self>
§Errors
io::Error // TODO:
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JoinGameTypeValue
impl RefUnwindSafe for JoinGameTypeValue
impl Send for JoinGameTypeValue
impl Sync for JoinGameTypeValue
impl Unpin for JoinGameTypeValue
impl UnsafeUnpin for JoinGameTypeValue
impl UnwindSafe for JoinGameTypeValue
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