MCPcopy Create free account
hub / github.com/archlinux/alpm / from_reader

Method from_reader

alpm-common/src/traits/metadata_file.rs:86–91  ·  view source on GitHub ↗

Creates [`Self`] from a [`Read`] implementer. # Note Implementations of this function are expected to automatically detect a [`FileFormatSchema`] that the resulting [`Self`] is based on. The blanket implementation calls [`Self::from_reader_with_schema`] with [`None`] as `schema`.

(reader: impl Read)

Source from the content-addressed store, hash-verified

84 /// The blanket implementation calls [`Self::from_reader_with_schema`] with [`None`] as
85 /// `schema`.
86 fn from_reader(reader: impl Read) -> Result<Self, Self::Err>
87 where
88 Self: Sized,
89 {
90 Self::from_reader_with_schema(reader, None)
91 }
92
93 /// Creates [`Self`] from a [`Read`] implementer, optionally validated by a `schema`.
94 ///

Callers

nothing calls this directly

Implementers 8

mod.rsalpm-buildinfo/src/build_info/mod.rs
mod.rsalpm-repo-db/src/files/mod.rs
file.rsalpm-repo-db/src/desc/file.rs
mod.rsalpm-mtree/src/mtree/mod.rs
mod.rsalpm-srcinfo/src/source_info/mod.rs
mod.rsalpm-db/src/files/mod.rs
file.rsalpm-db/src/desc/file.rs
mod.rsalpm-pkginfo/src/package_info/mod.rs

Calls

no outgoing calls

Tested by

no test coverage detected