Struct pso2packetlib::protocol::objects::SetTagPacket
source · pub struct SetTagPacket {
pub receiver: ObjectHeader,
pub target: ObjectHeader,
pub unk1: u32,
pub object3: ObjectHeader,
pub object4: ObjectHeader,
pub unk2: u8,
pub unk3: u8,
pub unk4: u8,
pub unk5: u8,
pub attribute: AsciiString,
}Expand description
(0x04, 0x15) Object Action or Set Object Tag. (unicast or broadcast)
(S -> C) Sent when object performs some action or it has new tag (usually after interaction).
Response to: crate::protocol::Packet::Interact (optional)
Fields§
§receiver: ObjectHeaderPlayer that receives this packet.
target: ObjectHeaderTarget object.
unk1: u32§object3: ObjectHeader§object4: ObjectHeader§unk2: u8§unk3: u8§unk4: u8§unk5: u8§attribute: AsciiStringName of the action or tag.
Trait Implementations§
source§impl Clone for SetTagPacket
impl Clone for SetTagPacket
source§fn clone(&self) -> SetTagPacket
fn clone(&self) -> SetTagPacket
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 SetTagPacket
impl Debug for SetTagPacket
source§impl Default for SetTagPacket
impl Default for SetTagPacket
source§fn default() -> SetTagPacket
fn default() -> SetTagPacket
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SetTagPacketwhere
SetTagPacket: Default,
impl<'de> Deserialize<'de> for SetTagPacketwhere
SetTagPacket: 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 SetTagPacket
impl PacketReadWrite for SetTagPacket
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 SetTagPacket
impl PartialEq for SetTagPacket
source§fn eq(&self, other: &SetTagPacket) -> bool
fn eq(&self, other: &SetTagPacket) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for SetTagPacket
impl Serialize for SetTagPacket
impl StructuralPartialEq for SetTagPacket
Auto Trait Implementations§
impl Freeze for SetTagPacket
impl RefUnwindSafe for SetTagPacket
impl Send for SetTagPacket
impl Sync for SetTagPacket
impl Unpin for SetTagPacket
impl UnwindSafe for SetTagPacket
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)