#[repr(u8)]pub enum NetworkId {
Test = 1,
Dev = 2,
Bounty = 3,
Dummy = 4,
Main = 42,
}Variants§
Trait Implementations§
Source§impl Deserialize for NetworkId
impl Deserialize for NetworkId
fn deserialize<R: ReadBytesExt>( reader: &mut R, ) -> Result<Self, SerializingError>
fn deserialize_from_vec(v: &Vec<u8>) -> Result<Self, SerializingError>
Source§impl Ord for NetworkId
impl Ord for NetworkId
Source§impl PartialOrd for NetworkId
impl PartialOrd for NetworkId
Source§impl Serialize for NetworkId
impl Serialize for NetworkId
fn serialize<W: WriteBytesExt>( &self, writer: &mut W, ) -> Result<usize, SerializingError>
fn serialized_size(&self) -> usize
fn serialize_to_vec(&self) -> Vec<u8> ⓘ
impl Copy for NetworkId
impl Eq for NetworkId
impl StructuralPartialEq for NetworkId
Auto Trait Implementations§
impl Freeze for NetworkId
impl RefUnwindSafe for NetworkId
impl Send for NetworkId
impl Sync for NetworkId
impl Unpin for NetworkId
impl UnwindSafe for NetworkId
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