create separate types per command
This commit is contained in:
parent
c29482ac56
commit
bffc905261
19 changed files with 306 additions and 200 deletions
|
@ -12,3 +12,15 @@ pub enum CompressionCode {
|
|||
/// compress using Zstandard
|
||||
Zstd = 0x7a73,
|
||||
}
|
||||
|
||||
impl From<servicepoint::CompressionCode> for CompressionCode {
|
||||
fn from(value: servicepoint::CompressionCode) -> Self {
|
||||
value.into()
|
||||
}
|
||||
}
|
||||
|
||||
impl From<CompressionCode> for servicepoint::CompressionCode {
|
||||
fn from(value: CompressionCode) -> Self {
|
||||
servicepoint::CompressionCode::try_from(value).unwrap()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue