[][src]Struct oras::Client

pub struct Client { /* fields omitted */ }

Connects to an OCI registry and pushes or pulls artifacts with custom metadata types.

Implementations

impl Client[src]

pub fn new(oci_client: OCIClient) -> Self[src]

Allocates a new Client.

pub async fn push<T, '_, '_>(
    &'_ mut self,
    _reference: &'_ Reference,
    _object: T
) -> Result<OciManifest> where
    T: TryInto<Vec<u8>, Error = Error> + Send
[src]

Push an object to an OCI registry.

pub async fn pull<T, '_, '_>(
    &'_ mut self,
    reference: &'_ Reference
) -> Result<(T, OciManifest)> where
    T: TryFrom<Vec<u8>, Error = Error> + Send
[src]

Pull an object from an OCI registry.

Trait Implementations

impl Default for Client[src]

Auto Trait Implementations

impl !RefUnwindSafe for Client

impl Send for Client

impl Sync for Client

impl Unpin for Client

impl !UnwindSafe for Client

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.