diff options
author | Sunil Nimmagadda <sunil@nimmagadda.net> | 2024-03-01 18:29:44 +0530 |
---|---|---|
committer | Sunil Nimmagadda <sunil@nimmagadda.net> | 2024-03-01 18:29:44 +0530 |
commit | 0d7c580deb7638d07ca9259f98c242309d61ca0c (patch) | |
tree | 646bc39e081190693bfe119c547c4510b2a3dca5 /src/vrrpv2.rs | |
parent | ccf44b4028345ae520e68c05e56ad9d167742c2b (diff) |
ByteReader -> BytesReader.
Diffstat (limited to 'src/vrrpv2.rs')
-rw-r--r-- | src/vrrpv2.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vrrpv2.rs b/src/vrrpv2.rs index cae0f31..f8445fb 100644 --- a/src/vrrpv2.rs +++ b/src/vrrpv2.rs @@ -51,13 +51,13 @@ pub enum VRRPv2AuthType { VRRPv2AuthReserved2 = 0x02, } -trait ByteReader { +trait BytesReader { fn read_u8(&mut self) -> io::Result<u8>; fn read_u16(&mut self) -> io::Result<u16>; fn read_u32(&mut self) -> io::Result<u32>; } -impl<T: AsRef<[u8]>> ByteReader for Cursor<T> { +impl<T: AsRef<[u8]>> BytesReader for Cursor<T> { fn read_u8(&mut self) -> io::Result<u8> { let mut buffer = [0; 1]; self.read_exact(&mut buffer)?; |