mirror of
https://github.com/netbirdio/IronRDP.git
synced 2026-05-22 18:43:12 -07:00
refactor(pdu): drop legacy trait
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
committed by
Benoît Cortier
parent
81984f9377
commit
7f08a098e2
@@ -218,23 +218,6 @@ impl PduHint for FastPathHint {
|
||||
}
|
||||
}
|
||||
|
||||
pub use legacy::*;
|
||||
|
||||
// TODO: Delete these traits at some point
|
||||
mod legacy {
|
||||
|
||||
pub trait PduBufferParsing<'a>: Sized {
|
||||
type Error;
|
||||
|
||||
fn from_buffer(mut buffer: &'a [u8]) -> Result<Self, Self::Error> {
|
||||
Self::from_buffer_consume(&mut buffer)
|
||||
}
|
||||
fn from_buffer_consume(buffer: &mut &'a [u8]) -> Result<Self, Self::Error>;
|
||||
fn to_buffer_consume(&self, buffer: &mut &mut [u8]) -> Result<(), Self::Error>;
|
||||
fn buffer_length(&self) -> usize;
|
||||
}
|
||||
}
|
||||
|
||||
// Private! Used by the macros.
|
||||
#[doc(hidden)]
|
||||
pub use ironrdp_core;
|
||||
|
||||
Reference in New Issue
Block a user