Trait syscall_encode::api::SyscallEncodable
source · pub trait SyscallEncodable<'a, Abi, EncodedType, Encoder>: Copywhere
Abi: SyscallAbi + ?Sized,
EncodedType: Copy,
Encoder: SyscallEncoder<'a, Abi, EncodedType>,{
// Required methods
fn encode(&self, encoder: &mut Encoder) -> Result<(), EncodeError>;
fn decode(decoder: &mut Encoder) -> Result<Self, DecodeError>
where Self: Sized;
}
Expand description
Indicates that a type may be encoded using an encoder, and implements the method for encoding. May be derived.