Struct pso2packetlib::protocol::party::PartyInitPacket
source · pub struct PartyInitPacket {
pub party_object: ObjectHeader,
pub leader: ObjectHeader,
pub people_amount: u32,
pub entries: [PartyEntry; 4],
pub unk2: AsciiString,
}Expand description
(0x0E, 0x02) Init Party.
(S -> C) Sent when a new party is created or a receiver joins an existing party.
Follow with:
crate::protocol::Packet::PartySettings,
crate::protocol::Packet::SetPartyColor (for all players in the party),
crate::protocol::Packet::PartySetupFinish
Fields§
§party_object: ObjectHeaderParty object.
leader: ObjectHeaderParty leader’s object.
people_amount: u32Number of people in the party.
entries: [PartyEntry; 4]Party members.
unk2: AsciiStringTrait Implementations§
source§impl Clone for PartyInitPacket
impl Clone for PartyInitPacket
source§fn clone(&self) -> PartyInitPacket
fn clone(&self) -> PartyInitPacket
Returns a copy 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 Debug for PartyInitPacket
impl Debug for PartyInitPacket
source§impl Default for PartyInitPacket
impl Default for PartyInitPacket
source§fn default() -> PartyInitPacket
fn default() -> PartyInitPacket
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PartyInitPacketwhere
PartyInitPacket: Default,
impl<'de> Deserialize<'de> for PartyInitPacketwhere
PartyInitPacket: Default,
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 PacketReadWrite for PartyInitPacket
impl PacketReadWrite for PartyInitPacket
source§fn read(
reader: &mut (impl Read + Seek),
flags: &Flags,
packet_type: PacketType,
) -> Result<Self, PacketError>
fn read( reader: &mut (impl Read + Seek), flags: &Flags, packet_type: PacketType, ) -> Result<Self, PacketError>
Reads a packet from a stream.
source§fn write(&self, packet_type: PacketType) -> Result<Vec<u8>, PacketError>
fn write(&self, packet_type: PacketType) -> Result<Vec<u8>, PacketError>
Writes a packet to a Vec.
source§impl PartialEq for PartyInitPacket
impl PartialEq for PartyInitPacket
source§fn eq(&self, other: &PartyInitPacket) -> bool
fn eq(&self, other: &PartyInitPacket) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for PartyInitPacket
impl Serialize for PartyInitPacket
impl StructuralPartialEq for PartyInitPacket
Auto Trait Implementations§
impl Freeze for PartyInitPacket
impl RefUnwindSafe for PartyInitPacket
impl Send for PartyInitPacket
impl Sync for PartyInitPacket
impl Unpin for PartyInitPacket
impl UnwindSafe for PartyInitPacket
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)