[−][src]Enum phar::Signature
A possible phar signature
Variants
Md5(Md5)
This is supported on crate feature
sig-md5
only.Signature corresponding to Phar::MD5
Sha1(Sha1)
This is supported on crate feature
sig-sha1
only.Signature corresponding to Phar::SHA1
Sha256(Sha256)
This is supported on crate feature
sig-sha2
only.Signature corresponding to Phar::SHA256
Sha512(Sha512)
This is supported on crate feature
sig-sha2
only.Signature corresponding to Phar::SHA512
Implementations
impl Signature
[src]
pub fn from_u32(discrim: u32) -> Option<Signature>
[src]
Creates a signature from the phar format flag
pub fn to_u32(&self) -> u32
[src]
Returns the phar format flag of the signature type
pub fn size(&self) -> u8
[src]
The number of bytes used for this signature
pub fn write(&mut self) -> impl Write + '_
[src]
Returns a Write
that writes to the underlying digest
pub fn finalize(self) -> SmallVec<[u8; 64]>
[src]
Returns the memory allocated by the underlying signature implementation
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Signature
impl Send for Signature
impl Sync for Signature
impl Unpin for Signature
impl UnwindSafe for Signature
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,