aboutsummaryrefslogtreecommitdiff
path: root/src/primitive/unsignedint.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/primitive/unsignedint.rs')
-rw-r--r--src/primitive/unsignedint.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/primitive/unsignedint.rs b/src/primitive/unsignedint.rs
index f0a78f7..a51ca6f 100644
--- a/src/primitive/unsignedint.rs
+++ b/src/primitive/unsignedint.rs
@@ -6,9 +6,9 @@ use std::result::Result;
use std::vec::Vec;
use crate::error::ProtocolError;
-use crate::{deserialize::*, primitive, serialize::*};
+use crate::{primitive, serialize::*};
-use crate::serialize::SerializeVariant;
+use crate::serialize::VariantType;
impl Serialize for bool {
fn serialize(&self) -> Result<Vec<u8>, ProtocolError> {
@@ -31,7 +31,7 @@ impl Deserialize for bool {
}
}
-impl SerializeVariant for bool {
+impl VariantType for bool {
const TYPE: u32 = primitive::BOOL;
}
@@ -48,7 +48,7 @@ impl Deserialize for u64 {
}
}
-impl SerializeVariant for u64 {
+impl VariantType for u64 {
const TYPE: u32 = primitive::ULONG;
}
@@ -65,7 +65,7 @@ impl Deserialize for u32 {
}
}
-impl SerializeVariant for u32 {
+impl VariantType for u32 {
const TYPE: u32 = primitive::UINT;
}
@@ -82,7 +82,7 @@ impl Deserialize for u16 {
}
}
-impl SerializeVariant for u16 {
+impl VariantType for u16 {
const TYPE: u32 = primitive::USHORT;
}
@@ -98,6 +98,6 @@ impl Deserialize for u8 {
}
}
-impl SerializeVariant for u8 {
+impl VariantType for u8 {
const TYPE: u32 = primitive::UCHAR;
}
'> 2021-07-21change IRC MessageType to be a bitflag instead of enumMax Audron-54/+94 the BufferSyncer object uses this type in a bitflag manner to indicate all the kinds of change that happened. bitflag still allows very enum esque usage so the change is okay for the Message object. 2021-07-21fix network objectMax Audron-18/+24 2021-07-21minor docs and cleanupMax Audron-4/+8 2021-04-05WIP: impl more signalproxy objectsMax Audron-1000/+1621 2021-03-09WIP: impl signalproxy typesMax Audron-253/+376 2021-01-21add to and from network deriveMax Audron-42/+2767 2021-01-21reorganize tests and add quassel featuresMax Audron-551/+850 2021-01-04add example program: quasselproxyclientMax Audron-0/+280 and inspection proxy for quassel 2021-01-04random stuffMax Audron-2/+9 2021-01-04add more signalproxy objectsMax Audron-40/+120 2021-01-04add message parsing feature flagsMax Audron-43/+96 2021-01-04fix parsing of datetime when value is -1Max Audron-1/+9 2021-01-02update dependenciesMax Audron-267/+27 2021-01-02rework handshakemessage parsingMax Audron-141/+278 2020-10-16updateMax Audron-1553/+294 2020-10-16update paperworkMax Audron-487/+391