pub fn header_mut(&mut self) -> Result<&mut Header<H>, Error> {
        match *self {
            Compact::Decoded { ref mut header, .. } => Ok(header),
            Compact::Encoded(_) => Err(Error::UnsupportedOperation),
        }
    }
/// Convenience method to get a reference to the header from a decoded compact JWS
Convenience method to get a reference to the header from a decoded compact JWS
Convenience method to get a reference to the header from a decoded compact JWS
pub fn header_mut(&mut self) -> Result<&mut Header<H>, Error> {
        match *self {
            Compact::Decoded { ref mut header, .. } => Ok(header),
            Compact::Encoded(_) => Err(Error::UnsupportedOperation),
        }
    }
pub fn header_mut ( & mut self ) -> Result < & mut Header < H > , Error > { match * self { Compact :: Decoded { ref mut header , .. } => Ok ( header ) , Compact :: Encoded ( _ ) => Err ( Error :: UnsupportedOperation ) , } }
Convenience method to get a reference to the header from a decoded compact JWS
Convenience method to get a reference to the header from a decoded compact JWS
&mut self
&mut self