pub struct TargetProfile { /* private fields */ }Expand description
Caller-selected target implementation and supported compatibility range.
Implementations§
Source§impl TargetProfile
impl TargetProfile
Sourcepub fn new(
implementation: impl Into<String>,
minimum_version: PlatformVersion,
maximum_version: Option<PlatformVersion>,
) -> Result<Self, TargetProfileError>
pub fn new( implementation: impl Into<String>, minimum_version: PlatformVersion, maximum_version: Option<PlatformVersion>, ) -> Result<Self, TargetProfileError>
Creates a target profile without interpreting implementation-specific capabilities.
§Errors
Returns TargetProfileError for an invalid name or version range.
Sourcepub fn implementation(&self) -> &str
pub fn implementation(&self) -> &str
Returns the target implementation name, such as podman.
Sourcepub const fn versions(&self) -> VersionRange
pub const fn versions(&self) -> VersionRange
Returns the requested compatibility range.
Trait Implementations§
Source§impl Clone for TargetProfile
impl Clone for TargetProfile
Source§fn clone(&self) -> TargetProfile
fn clone(&self) -> TargetProfile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TargetProfile
impl Debug for TargetProfile
impl Eq for TargetProfile
Source§impl PartialEq for TargetProfile
impl PartialEq for TargetProfile
impl StructuralPartialEq for TargetProfile
Auto Trait Implementations§
impl Freeze for TargetProfile
impl RefUnwindSafe for TargetProfile
impl Send for TargetProfile
impl Sync for TargetProfile
impl Unpin for TargetProfile
impl UnsafeUnpin for TargetProfile
impl UnwindSafe for TargetProfile
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