fn partial_size(&self) -> usize {
        // 7 = 6 for "MQTT" string + 1 for the version
        7 + self.flags.size()
            + self.keep_alive.size()
            + self.props.size()
            + self.clientid.size()
            + self.will_info.as_ref().map(|w| w.size()).unwrap_or(0)
            + self.username.as_ref().map(|u| u.size()).unwrap_or(0)
            + self.password.as_ref().map(|p| p.size()).unwrap_or(0)
    }
// returns size without the including the length part of the header
// for full size use size() instead
returns size without the including the length part of the header
for full size use size() instead
returns size without the including the length part of the header for full size use size () instead
fn partial_size(&self) -> usize {
        // 7 = 6 for "MQTT" string + 1 for the version
        7 + self.flags.size()
            + self.keep_alive.size()
            + self.props.size()
            + self.clientid.size()
            + self.will_info.as_ref().map(|w| w.size()).unwrap_or(0)
            + self.username.as_ref().map(|u| u.size()).unwrap_or(0)
            + self.password.as_ref().map(|p| p.size()).unwrap_or(0)
    }
fn partial_size ( & self ) -> usize { // 7 = 6 for "MQTT" string + 1 for the version 7 + self . flags . size ( ) + self . keep_alive . size ( ) + self . props . size ( ) + self . clientid . size ( ) + self . will_info . as_ref ( ) . map ( | w | w . size ( ) ) . unwrap_or ( 0 ) + self . username . as_ref ( ) . map ( | u | u . size ( ) ) . unwrap_or ( 0 ) + self . password . as_ref ( ) . map ( | p | p . size ( ) ) . unwrap_or ( 0 ) }
returns size without the including the length part of the header
for full size use size() instead
returns size without the including the length part of the header for full size use size () instead
&self
&self