|
@ -109,7 +109,7 @@ impl PSOPacketData for String { |
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
#[derive(Debug, Clone, PartialEq)]
|
|
|
|
|
|
|
|
|
#[derive(Clone, PartialEq)]
|
|
|
pub struct ConsumingBlob {
|
|
|
pub struct ConsumingBlob {
|
|
|
pub blob: Vec<u8>,
|
|
|
pub blob: Vec<u8>,
|
|
|
}
|
|
|
}
|
|
@ -127,6 +127,14 @@ impl PSOPacketData for ConsumingBlob { |
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
impl std::fmt::Debug for ConsumingBlob {
|
|
|
|
|
|
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
|
|
|
|
|
f.debug_struct("ConsumingBlob")
|
|
|
|
|
|
.field("blob", &"[...]")
|
|
|
|
|
|
.finish()
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
pub trait PSOPacket: std::fmt::Debug {
|
|
|
pub trait PSOPacket: std::fmt::Debug {
|
|
|
// const CMD: u16;
|
|
|
// const CMD: u16;
|
|
|
fn from_bytes(data: &[u8]) -> Result<Self, PacketParseError> where Self: Sized;
|
|
|
fn from_bytes(data: &[u8]) -> Result<Self, PacketParseError> where Self: Sized;
|
|
|