Browse Source

protocol: update docs

master
Denis Drakhnia 1 month ago
parent
commit
17c75e7759
  1. 5
      protocol/src/master.rs

5
protocol/src/master.rs

@ -166,10 +166,7 @@ impl QueryServersResponse<()> {
/// Encode packet to `buf`. /// Encode packet to `buf`.
/// ///
/// If `buf` has not enougth size to hold all addresses the method must be called /// Returns number of bytes written into `buf` and how many items was written.
/// multiple times until the end flag equals `true`.
///
/// Returns how many bytes was written in `buf` and the end flag.
pub fn encode<A>(&mut self, buf: &mut [u8], list: &[A]) -> Result<(usize, usize), Error> pub fn encode<A>(&mut self, buf: &mut [u8], list: &[A]) -> Result<(usize, usize), Error>
where where
A: ServerAddress, A: ServerAddress,

Loading…
Cancel
Save