[][src]Struct gantryclient::Client

pub struct Client { /* fields omitted */ }

An instance of a Gantry client connection

Implementations

impl Client[src]

pub fn try_new(
    host: &str,
    credsfile: Option<PathBuf>,
    call_timeout: Duration
) -> Result<Client, Box<dyn Error>>
[src]

pub fn put_token(
    &self,
    token: &Token
) -> Result<PutTokenResponse, Box<dyn Error>>
[src]

pub fn query_catalog(
    &self,
    query: &CatalogQuery
) -> Result<CatalogQueryResults, Box<dyn Error>>
[src]

pub fn remove_token(&self, _token: &Token) -> Result<(), Box<dyn Error>>[src]

pub fn get_detail(&self, key: &str) -> Result<TokenDetail, Box<dyn Error>>[src]

pub fn ping(&self) -> Result<PingResponse, Box<dyn Error>>[src]

pub fn start_upload(
    &self,
    req: &UploadRequest
) -> Result<TransferAck, Box<dyn Error>>
[src]

pub fn upload_chunk(
    &self,
    sequence_no: u64,
    actor: &str,
    chunk_size: u64,
    total_bytes: u64,
    total_chunks: u64,
    bytes: Vec<u8>
) -> Result<(), Box<dyn Error>>
[src]

pub fn download_actor(
    &self,
    actor: &str,
    revision: u32
) -> Result<Vec<u8>, Box<dyn Error>>
[src]

Trait Implementations

impl Clone for Client[src]

impl Debug 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> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,