pub fn concatenate(&self) -> (Indicator, &[u8]) {
        let new_indicator = Indicator::new(
            Layers::Ethernet(self.ethernet.clone()),
            Some(Layers::Ipv4(self.ipv4.clone())),
            self.transport.clone(),
        );

        let header_size = self.ethernet.get_size() + self.ipv4.get_size();

        (new_indicator, &self.buffer[0..header_size + self.length])
    }
/// Concatenates fragmentations and returns an indicator of the buffer and the buffer itself.
Concatenates fragmentations and returns an indicator of the buffer and the buffer itself.
Concatenates fragmentations and returns an indicator of the buffer and the buffer itself .
pub fn concatenate(&self) -> (Indicator, &[u8]) {
        let new_indicator = Indicator::new(
            Layers::Ethernet(self.ethernet.clone()),
            Some(Layers::Ipv4(self.ipv4.clone())),
            self.transport.clone(),
        );
        let header_size = self.ethernet.get_size() + self.ipv4.get_size();
        (new_indicator, &self.buffer[0..header_size + self.length])
    }
pub fn concatenate ( & self ) -> ( Indicator , & [ u8 ] ) { let new_indicator = Indicator :: new ( Layers :: Ethernet ( self . ethernet . clone ( ) ) , Some ( Layers :: Ipv4 ( self . ipv4 . clone ( ) ) ) , self . transport . clone ( ) , ) ; let header_size = self . ethernet . get_size ( ) + self . ipv4 . get_size ( ) ; ( new_indicator , & self . buffer [ 0 .. header_size + self . length ] ) }
Concatenates fragmentations and returns an indicator of the buffer and the buffer itself.
Concatenates fragmentations and returns an indicator of the buffer and the buffer itself .
&self