pub enum Signature {
Md5(Md5),
Sha1(Sha1),
Sha256(Sha256),
Sha512(Sha512),
}Expand description
A possible phar signature
Variants§
Md5(Md5)
Available on crate feature
sig-md5 only.Signature corresponding to Phar::MD5
Sha1(Sha1)
Available on crate feature
sig-sha1 only.Signature corresponding to Phar::SHA1
Sha256(Sha256)
Available on crate feature
sig-sha2 only.Signature corresponding to Phar::SHA256
Sha512(Sha512)
Available on crate feature
sig-sha2 only.Signature corresponding to Phar::SHA512
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Signature
impl RefUnwindSafe for Signature
impl Send for Signature
impl Sync for Signature
impl Unpin for Signature
impl UnsafeUnpin for Signature
impl UnwindSafe for Signature
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more