pub struct ArtifactIdBuilder<H: HashAlgorithm, P: HashProvider<H>> { /* private fields */ }
Expand description
A builder for ArtifactId
s.
Implementations§
Source§impl ArtifactIdBuilder<Sha256, RustCrypto>
impl ArtifactIdBuilder<Sha256, RustCrypto>
pub fn with_rustcrypto() -> Self
Source§impl ArtifactIdBuilder<Sha256, BoringSsl>
impl ArtifactIdBuilder<Sha256, BoringSsl>
pub fn with_boringssl() -> Self
Source§impl ArtifactIdBuilder<Sha256, OpenSsl>
impl ArtifactIdBuilder<Sha256, OpenSsl>
pub fn with_openssl() -> Self
Source§impl<H: HashAlgorithm, P: HashProvider<H>> ArtifactIdBuilder<H, P>
impl<H: HashAlgorithm, P: HashProvider<H>> ArtifactIdBuilder<H, P>
pub fn with_provider(provider: P) -> Self
pub fn identify_bytes(&self, bytes: &[u8]) -> ArtifactId<H>
pub fn identify_string(&self, s: &str) -> ArtifactId<H>
pub fn identify_file(&self, file: &mut File) -> Result<ArtifactId<H>, Error>
pub fn identify_path(&self, path: &Path) -> Result<ArtifactId<H>, Error>
pub fn identify_reader<R: Read + Seek>( &self, reader: R, ) -> Result<ArtifactId<H>, Error>
pub async fn identify_async_file( &self, file: &mut AsyncFile, ) -> Result<ArtifactId<H>, Error>
pub async fn identify_async_path( &self, path: &Path, ) -> Result<ArtifactId<H>, Error>
pub async fn identify_async_reader<R: AsyncRead + AsyncSeek + Unpin>( &self, reader: R, ) -> Result<ArtifactId<H>, Error>
pub fn identify_manifest(&self, manifest: &InputManifest<H>) -> ArtifactId<H>
Auto Trait Implementations§
impl<H, P> Freeze for ArtifactIdBuilder<H, P>where
P: Freeze,
impl<H, P> RefUnwindSafe for ArtifactIdBuilder<H, P>where
P: RefUnwindSafe,
H: RefUnwindSafe,
impl<H, P> Send for ArtifactIdBuilder<H, P>
impl<H, P> Sync for ArtifactIdBuilder<H, P>
impl<H, P> Unpin for ArtifactIdBuilder<H, P>
impl<H, P> UnwindSafe for ArtifactIdBuilder<H, P>where
P: UnwindSafe,
H: UnwindSafe,
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