pub struct AdapterDriverRequirement { /* private fields */ }Expand description
One exact first-party driver/runtime/platform claim.
Implementations§
Source§impl AdapterDriverRequirement
impl AdapterDriverRequirement
Sourcepub fn new(
driver: InstallationDriver,
runtime_version: InstallationSymbol,
platforms: Vec<AdapterPlatform>,
conformance_hash: GeneratedArtifactHash,
) -> Result<Self, AdapterConformanceError>
pub fn new( driver: InstallationDriver, runtime_version: InstallationSymbol, platforms: Vec<AdapterPlatform>, conformance_hash: GeneratedArtifactHash, ) -> Result<Self, AdapterConformanceError>
Creates one exact driver requirement; ranges and empty platforms are impossible.
Sourcepub const fn driver(&self) -> InstallationDriver
pub const fn driver(&self) -> InstallationDriver
First-party transport owner selected by this requirement.
Sourcepub const fn runtime_version(&self) -> &InstallationSymbol
pub const fn runtime_version(&self) -> &InstallationSymbol
Exact runtime/toolchain version symbol, never a version range.
Sourcepub fn platforms(&self) -> &[AdapterPlatform]
pub fn platforms(&self) -> &[AdapterPlatform]
Closed supported platforms.
Sourcepub const fn conformance_hash(&self) -> GeneratedArtifactHash
pub const fn conformance_hash(&self) -> GeneratedArtifactHash
Exact golden driver-conformance observation identity.
Trait Implementations§
Source§impl Clone for AdapterDriverRequirement
impl Clone for AdapterDriverRequirement
Source§impl Debug for AdapterDriverRequirement
impl Debug for AdapterDriverRequirement
impl Eq for AdapterDriverRequirement
Source§impl Ord for AdapterDriverRequirement
impl Ord for AdapterDriverRequirement
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for AdapterDriverRequirement
impl PartialEq for AdapterDriverRequirement
Source§impl PartialOrd for AdapterDriverRequirement
impl PartialOrd for AdapterDriverRequirement
impl StructuralPartialEq for AdapterDriverRequirement
Auto Trait Implementations§
impl Freeze for AdapterDriverRequirement
impl RefUnwindSafe for AdapterDriverRequirement
impl Send for AdapterDriverRequirement
impl Sync for AdapterDriverRequirement
impl Unpin for AdapterDriverRequirement
impl UnsafeUnpin for AdapterDriverRequirement
impl UnwindSafe for AdapterDriverRequirement
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