pub enum OciRef {
LocalStorage(Reference),
OciArchive(PathBuf),
OciDir(PathBuf),
Remote(Reference),
}Variants§
Implementations§
Source§impl OciRef
impl OciRef
pub fn from_local_storage(local_ref: &Reference) -> Self
Sourcepub fn from_oci_archive<P: AsRef<Path>>(path: P) -> Result<Self, Report>
pub fn from_oci_archive<P: AsRef<Path>>(path: P) -> Result<Self, Report>
§Errors
Returns an error if the path does not point to a regular file.
Sourcepub fn from_oci_directory<P: AsRef<Path>>(path: P) -> Result<Self, Report>
pub fn from_oci_directory<P: AsRef<Path>>(path: P) -> Result<Self, Report>
§Errors
Returns an error if the path does not point to a directory.
pub fn from_remote_ref(image_ref: &Reference) -> Self
pub fn to_os_string(&self) -> OsString
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OciRef
impl RefUnwindSafe for OciRef
impl Send for OciRef
impl Sync for OciRef
impl Unpin for OciRef
impl UnsafeUnpin for OciRef
impl UnwindSafe for OciRef
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.