pub struct SignedArchive { /* private fields */ }Expand description
A signed binary package ready to be written.
This is created by BinaryPackage::sign or SignedArchive::from_unsigned.
Implementations§
Source§impl SignedArchive
impl SignedArchive
Sourcepub fn from_unsigned(
data: Vec<u8>,
pkgname: impl Into<String>,
signature: &[u8],
compression: Compression,
) -> Result<Self>
pub fn from_unsigned( data: Vec<u8>, pkgname: impl Into<String>, signature: &[u8], compression: Compression, ) -> Result<Self>
Create a signed archive from unsigned tarball bytes.
This is useful for signing a freshly-built package without writing it to disk first.
Sourcepub fn compression(&self) -> Compression
pub fn compression(&self) -> Compression
Return the compression format of the inner tarball.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SignedArchive
impl RefUnwindSafe for SignedArchive
impl Send for SignedArchive
impl Sync for SignedArchive
impl Unpin for SignedArchive
impl UnsafeUnpin for SignedArchive
impl UnwindSafe for SignedArchive
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more