Enum comms_service::PayloadType
source · [−]#[repr(u8)]
pub enum PayloadType {
GraphQL,
UDP,
Unknown(u16),
}
Expand description
Enum representing the different payload types handled by the communications service
Variants
GraphQL
Packet intended for GraphQL request/response
UDP
Packet intended for UDP passthrough
Unknown(u16)
Unknown type
Trait Implementations
sourceimpl From<PayloadType> for u16
impl From<PayloadType> for u16
sourcefn from(value: PayloadType) -> u16
fn from(value: PayloadType) -> u16
Converts to this type from the input type.
sourceimpl From<u16> for PayloadType
impl From<u16> for PayloadType
sourcefn from(num: u16) -> PayloadType
fn from(num: u16) -> PayloadType
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for PayloadType
impl Send for PayloadType
impl Sync for PayloadType
impl Unpin for PayloadType
impl UnwindSafe for PayloadType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more