@@ -24,6 +24,7 @@ use crate::rdp::headers::{CompressionFlags, SHARE_DATA_HEADER_COMPRESSION_MASK};
2424 reason = "this structure is used in the match expression in the integration tests"
2525) ]
2626#[ derive( Debug , Clone , PartialEq , Eq ) ]
27+ #[ cfg_attr( feature = "arbitrary" , derive( arbitrary:: Arbitrary ) ) ]
2728pub struct FastPathHeader {
2829 pub flags : EncryptionFlags ,
2930 pub data_length : usize ,
@@ -116,6 +117,7 @@ impl<'de> Decode<'de> for FastPathHeader {
116117
117118/// TS_FP_UPDATE
118119#[ derive( Debug , Clone , PartialEq , Eq ) ]
120+ #[ cfg_attr( feature = "arbitrary" , derive( arbitrary:: Arbitrary ) ) ]
119121pub struct FastPathUpdatePdu < ' a > {
120122 pub fragmentation : Fragmentation ,
121123 pub update_code : UpdateCode ,
@@ -217,6 +219,7 @@ impl<'de> Decode<'de> for FastPathUpdatePdu<'de> {
217219
218220/// TS_FP_UPDATE data
219221#[ derive( Debug , Clone , PartialEq , Eq ) ]
222+ #[ cfg_attr( feature = "arbitrary" , derive( arbitrary:: Arbitrary ) ) ]
220223pub enum FastPathUpdate < ' a > {
221224 SurfaceCommands ( Vec < SurfaceCommand < ' a > > ) ,
222225 Bitmap ( BitmapUpdateData < ' a > ) ,
@@ -329,6 +332,7 @@ impl Encode for FastPathUpdate<'_> {
329332
330333#[ repr( u8 ) ]
331334#[ derive( Debug , Copy , Clone , PartialEq , Eq , FromPrimitive ) ]
335+ #[ cfg_attr( feature = "arbitrary" , derive( arbitrary:: Arbitrary ) ) ]
332336pub enum UpdateCode {
333337 Orders = 0x0 ,
334338 Bitmap = 0x1 ,
@@ -375,6 +379,7 @@ impl From<&FastPathUpdate<'_>> for UpdateCode {
375379
376380#[ repr( u8 ) ]
377381#[ derive( Debug , Copy , Clone , PartialEq , Eq , FromPrimitive ) ]
382+ #[ cfg_attr( feature = "arbitrary" , derive( arbitrary:: Arbitrary ) ) ]
378383pub enum Fragmentation {
379384 Single = 0x0 ,
380385 Last = 0x1 ,
@@ -394,6 +399,7 @@ impl Fragmentation {
394399
395400bitflags ! {
396401 #[ derive( Debug , Clone , Copy , PartialEq , Eq , PartialOrd , Ord , Hash ) ]
402+ #[ cfg_attr( feature = "arbitrary" , derive( arbitrary:: Arbitrary ) ) ]
397403 pub struct EncryptionFlags : u8 {
398404 const SECURE_CHECKSUM = 0x1 ;
399405 const ENCRYPTED = 0x2 ;
@@ -404,6 +410,7 @@ bitflags! {
404410
405411bitflags ! {
406412 #[ derive( Debug , Clone , Copy , PartialEq , Eq , PartialOrd , Ord , Hash ) ]
413+ #[ cfg_attr( feature = "arbitrary" , derive( arbitrary:: Arbitrary ) ) ]
407414 pub struct Compression : u8 {
408415 const COMPRESSION_USED = 0x2 ;
409416
0 commit comments