imdl 0.1.16

📦 A 40' shipping container for the internet
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::common::*;

pub(crate) trait Response {
  // Deserialize the response into a Response object and payload.
  fn deserialize(buf: &[u8]) -> Result<(Self, &[u8])>
  where
    Self: std::marker::Sized;

  fn transaction_id(&self) -> u32;
  fn action(&self) -> u32;
}