forked from AbleOS/ableos
18 lines
297 B
Rust
18 lines
297 B
Rust
pub enum ProtocolTypes {
|
|
Byte,
|
|
}
|
|
|
|
pub struct Protocol {}
|
|
impl Protocol {
|
|
pub fn is_empty(&self) -> bool {
|
|
true
|
|
}
|
|
|
|
pub fn validate_data(&self, data: Vec<u8>) -> bool {
|
|
if !data.is_empty() && self.is_empty() {
|
|
return false;
|
|
}
|
|
true
|
|
}
|
|
}
|