Struct pso2packetlib::protocol::login::NotificationStatusPacket
source · pub struct NotificationStatusPacket {
pub new_mail: u32,
pub char_campaigns: u32,
pub campaigns: u32,
pub unk3: u32,
}Expand description
(0x11, 0x71) Notification Status.
(S -> C) Sent when a client has unchecked notifications.
Fields§
§new_mail: u32Number of new mails.
char_campaigns: u32Number of unclaimed characted campaigns.
campaigns: u32Number of unclaimed account campaigns.
unk3: u32Trait Implementations§
source§impl Clone for NotificationStatusPacket
impl Clone for NotificationStatusPacket
source§fn clone(&self) -> NotificationStatusPacket
fn clone(&self) -> NotificationStatusPacket
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 NotificationStatusPacket
impl Debug for NotificationStatusPacket
source§impl Default for NotificationStatusPacket
impl Default for NotificationStatusPacket
source§fn default() -> NotificationStatusPacket
fn default() -> NotificationStatusPacket
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for NotificationStatusPacketwhere
NotificationStatusPacket: Default,
impl<'de> Deserialize<'de> for NotificationStatusPacketwhere
NotificationStatusPacket: 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 NotificationStatusPacket
impl PacketReadWrite for NotificationStatusPacket
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 NotificationStatusPacket
impl PartialEq for NotificationStatusPacket
source§fn eq(&self, other: &NotificationStatusPacket) -> bool
fn eq(&self, other: &NotificationStatusPacket) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for NotificationStatusPacket
impl Serialize for NotificationStatusPacket
impl StructuralPartialEq for NotificationStatusPacket
Auto Trait Implementations§
impl Freeze for NotificationStatusPacket
impl RefUnwindSafe for NotificationStatusPacket
impl Send for NotificationStatusPacket
impl Sync for NotificationStatusPacket
impl Unpin for NotificationStatusPacket
impl UnwindSafe for NotificationStatusPacket
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)