pub struct Stream {
pub stream: String,
pub architectures: HashMap<String, Arch>,
}Expand description
Toplevel stream object.
Fields§
§stream: StringName of the stream.
architectures: HashMap<String, Arch>Architectures.
Implementations§
Source§impl Stream
impl Stream
Sourcepub fn this_architecture(&self) -> Option<&Arch>
pub fn this_architecture(&self) -> Option<&Arch>
Returns the data for the CPU architecture matching the running process.
Sourcepub fn query_disk(
&self,
arch: &str,
artifact: &str,
format_name: &str,
) -> Option<&Artifact>
pub fn query_disk( &self, arch: &str, artifact: &str, format_name: &str, ) -> Option<&Artifact>
Find a disk artifact.
Sourcepub fn query_thisarch_single(&self, artifact: &str) -> Option<&Artifact>
pub fn query_thisarch_single(&self, artifact: &str) -> Option<&Artifact>
Find the single disk image for this architecture of the given type. Only use this
for images which don’t have multiple format.s
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Stream
impl<'de> Deserialize<'de> for Stream
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Stream
impl RefUnwindSafe for Stream
impl Send for Stream
impl Sync for Stream
impl Unpin for Stream
impl UnwindSafe for Stream
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