fn pull_stream(header: &[u8], &Key(ref key): &Key) -> crate::Result<Stream<Pull>> {
    let stream_key = secretstream::Key(key.to_owned());
    let header = Header::from_slice(header).expect("Invalid Header size");

    Stream::init_pull(&header, &stream_key).map_err(|_| crate::Error::SnapshotError("Unable to open stream".into()))
}
/// create a decryption pull stream.
create a decryption pull stream.
create a decryption pull stream .
fn pull_stream(header: &[u8], &Key(ref key): &Key) -> crate::Result<Stream<Pull>> {
    let stream_key = secretstream::Key(key.to_owned());
    let header = Header::from_slice(header).expect("Invalid Header size");
    Stream::init_pull(&header, &stream_key).map_err(|_| crate::Error::SnapshotError("Unable to open stream".into()))
}
fn pull_stream ( header : & [ u8 ] , & Key ( ref key ) : & Key ) -> crate :: Result < Stream < Pull > > { let stream_key = secretstream :: Key ( key . to_owned ( ) ) ; let header = Header :: from_slice ( header ) . expect ( " " ) ; Stream :: init_pull ( & header , & stream_key ) . map_err ( | _ | crate :: Error :: SnapshotError ( " " . into ( ) ) ) }
create a decryption pull stream.
create a decryption pull stream .
header
&Key