pub fn command(&self) -> Result<Command, Error> {
        match self {
            Packet::Initialization { command, .. } => Ok(*command),
            Packet::Continuation { .. } => {
                Err(format_err!("Cannot get command for continuation packet"))
            }
        }
    }
/// Returns the command of this packet, or an error if called on a continuation packet.
Returns the command of this packet, or an error if called on a continuation packet.
Returns the command of this packet or an error if called on a continuation packet .
pub fn command(&self) -> Result<Command, Error> {
        match self {
            Packet::Initialization { command, .. } => Ok(*command),
            Packet::Continuation { .. } => {
                Err(format_err!("Cannot get command for continuation packet"))
            }
        }
    }
pub fn command ( & self ) -> Result < Command , Error > { match self { Packet :: Initialization { command , .. } => Ok ( * command ) , Packet :: Continuation { .. } => { Err ( format_err ! ( " " ) ) } } }
Returns the command of this packet, or an error if called on a continuation packet.
Returns the command of this packet or an error if called on a continuation packet .
&self