pub enum PacketMsg {
Recv(MsgRecvPacket),
Ack(MsgAcknowledgement),
Timeout(MsgTimeout),
TimeoutOnClose(MsgTimeoutOnClose),
}Expand description
All packet messages
Variants§
Trait Implementations§
Source§impl<'arbitrary> Arbitrary<'arbitrary> for PacketMsg
impl<'arbitrary> Arbitrary<'arbitrary> for PacketMsg
Source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<PacketMsg, Error>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<PacketMsg, Error>
Generate an arbitrary value of
Self from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<PacketMsg, Error>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<PacketMsg, Error>
Generate an arbitrary value of
Self from the entirety of the given
unstructured data. Read moreSource§fn size_hint(depth: usize) -> (usize, Option<usize>)
fn size_hint(depth: usize) -> (usize, Option<usize>)
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§fn try_size_hint(
depth: usize,
) -> Result<(usize, Option<usize>), MaxRecursionReached>
fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§impl BorshDeserialize for PacketMsg
impl BorshDeserialize for PacketMsg
fn deserialize_reader<__R>(reader: &mut __R) -> Result<PacketMsg, Error>where
__R: Read,
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for PacketMsg
impl BorshSerialize for PacketMsg
Source§impl From<MsgAcknowledgement> for PacketMsg
impl From<MsgAcknowledgement> for PacketMsg
Source§fn from(value: MsgAcknowledgement) -> PacketMsg
fn from(value: MsgAcknowledgement) -> PacketMsg
Converts to this type from the input type.
Source§impl From<MsgRecvPacket> for PacketMsg
impl From<MsgRecvPacket> for PacketMsg
Source§fn from(value: MsgRecvPacket) -> PacketMsg
fn from(value: MsgRecvPacket) -> PacketMsg
Converts to this type from the input type.
Source§impl From<MsgTimeout> for PacketMsg
impl From<MsgTimeout> for PacketMsg
Source§fn from(value: MsgTimeout) -> PacketMsg
fn from(value: MsgTimeout) -> PacketMsg
Converts to this type from the input type.
Source§impl From<MsgTimeoutOnClose> for PacketMsg
impl From<MsgTimeoutOnClose> for PacketMsg
Source§fn from(value: MsgTimeoutOnClose) -> PacketMsg
fn from(value: MsgTimeoutOnClose) -> PacketMsg
Converts to this type from the input type.
Source§impl From<PacketMsg> for MsgEnvelope
impl From<PacketMsg> for MsgEnvelope
Source§fn from(value: PacketMsg) -> MsgEnvelope
fn from(value: PacketMsg) -> MsgEnvelope
Converts to this type from the input type.
Source§impl JsonSchema for PacketMsg
impl JsonSchema for PacketMsg
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreimpl Eq for PacketMsg
impl StructuralPartialEq for PacketMsg
Auto Trait Implementations§
impl Freeze for PacketMsg
impl RefUnwindSafe for PacketMsg
impl Send for PacketMsg
impl Sync for PacketMsg
impl Unpin for PacketMsg
impl UnwindSafe for PacketMsg
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