use crate::packet;
use crate::Packet;
#[derive(Clone, Debug, PartialEq, Eq, Hash)]
pub struct SEIP1 {
pub(crate) common: packet::Common,
container: packet::Container,
}
assert_send_and_sync!(SEIP1);
impl std::ops::Deref for SEIP1 {
type Target = packet::Container;
fn deref(&self) -> &Self::Target {
&self.container
}
}
impl std::ops::DerefMut for SEIP1 {
fn deref_mut(&mut self) -> &mut Self::Target {
&mut self.container
}
}
#[allow(clippy::new_without_default)]
impl SEIP1 {
pub fn new() -> Self {
Self {
common: Default::default(),
container: Default::default(),
}
}
}
impl From<SEIP1> for super::SEIP {
fn from(p: SEIP1) -> Self {
super::SEIP::V1(p)
}
}
impl From<SEIP1> for Packet {
fn from(s: SEIP1) -> Self {
Packet::SEIP(s.into())
}
}