#[repr(u8)]pub enum SystemSType {
PacketMeta = 0,
HandlerMetaReq = 1,
HandlerMetaAns = 2,
ServerError = 3,
}Variants§
Implementations§
Source§impl SystemSType
impl SystemSType
pub fn deserialize(val: u64) -> Box<dyn StructureType>
pub fn serialize(refer: Box<dyn StructureType>) -> u64
Trait Implementations§
Source§impl Clone for SystemSType
impl Clone for SystemSType
Source§fn clone(&self) -> SystemSType
fn clone(&self) -> SystemSType
Returns a duplicate 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<'de> Deserialize<'de> for SystemSType
impl<'de> Deserialize<'de> for SystemSType
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 Hash for SystemSType
impl Hash for SystemSType
Source§impl PartialEq for SystemSType
impl PartialEq for SystemSType
Source§impl Serialize for SystemSType
impl Serialize for SystemSType
Source§impl StructureType for SystemSType
impl StructureType for SystemSType
fn get_type_id(&self) -> TypeId
Source§fn equals(&self, other: &dyn StructureType) -> bool
fn equals(&self, other: &dyn StructureType) -> bool
We don’t use the equals from rust trait, due to need of dyn compatibility
fn as_any(&self) -> &dyn Any
Source§fn clone_unique(&self) -> Box<dyn StructureType>
fn clone_unique(&self) -> Box<dyn StructureType>
We don’t use the equals from rust trait, due to need of dyn compatibility
Source§fn get_deserialize_function(&self) -> Box<dyn Fn(u64) -> Box<dyn StructureType>>
fn get_deserialize_function(&self) -> Box<dyn Fn(u64) -> Box<dyn StructureType>>
Returns the pointer to function that deserializes value into the current structure type
Source§fn get_serialize_function(&self) -> Box<dyn Fn(Box<dyn StructureType>) -> u64>
fn get_serialize_function(&self) -> Box<dyn Fn(Box<dyn StructureType>) -> u64>
Returns the pointer to function that serializes structure type value into the u64 value.
Source§impl TryFrom<u8> for SystemSType
impl TryFrom<u8> for SystemSType
Source§type Error = TryFromPrimitiveError<SystemSType>
type Error = TryFromPrimitiveError<SystemSType>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for SystemSType
impl TryFromPrimitive for SystemSType
const NAME: &'static str = "SystemSType"
type Primitive = u8
type Error = TryFromPrimitiveError<SystemSType>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for SystemSType
impl Eq for SystemSType
impl StructuralPartialEq for SystemSType
Auto Trait Implementations§
impl Freeze for SystemSType
impl RefUnwindSafe for SystemSType
impl Send for SystemSType
impl Sync for SystemSType
impl Unpin for SystemSType
impl UnwindSafe for SystemSType
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