Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions src/protocol/caex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,12 @@ impl WriteToBytes for EnterShow {
}
}

impl WriteToBytes for LeaveShow {
fn write_to_bytes<W: WriteBytesExt>(&self, mut writer: W) -> io::Result<()> {
Ok(())
}
}

impl<'a> WriteToBytes for FixtureList<'a> {
fn write_to_bytes<W: WriteBytesExt>(&self, mut writer: W) -> io::Result<()> {
writer.write_u8(self.message_type.into())?;
Expand Down Expand Up @@ -547,6 +553,12 @@ impl ReadFromBytes for EnterShow {
}
}

impl ReadFromBytes for LeaveShow {
fn read_from_bytes<R: ReadBytesExt>(reader: R) -> io::Result<Self> {
Ok(LeaveShow {})
}
}

impl<'a> ReadFromBytes for FixtureList<'a> {
fn read_from_bytes<R: ReadBytesExt>(mut reader: R) -> io::Result<Self> {
let message_type: FixtureListMessageType = reader.read_u8()?.into();
Expand Down Expand Up @@ -645,6 +657,12 @@ impl SizeBytes for EnterShow {
}
}

impl SizeBytes for LeaveShow {
fn size_bytes(&self) -> usize {
0
}
}

impl<'a> SizeBytes for FixtureList<'a> {
fn size_bytes(&self) -> usize {
let mut fixtures_size = 0;
Expand Down