Add get_data() method to Response.
This commit is contained in:
parent
780b6e724c
commit
39f48bf13b
1 changed files with 6 additions and 0 deletions
|
@ -15,6 +15,12 @@ pub struct Response {
|
|||
data: Vec<u8>,
|
||||
}
|
||||
|
||||
impl Response {
|
||||
pub fn get_data(&self) -> &[u8] {
|
||||
&self.data
|
||||
}
|
||||
}
|
||||
|
||||
/// "Raw" APDU Response, including the status bytes.
|
||||
///
|
||||
/// This type is used for processing inside the openpgp-card crate
|
||||
|
|
Loading…
Reference in a new issue