Struct skynet_rs::SkynetClient[][src]

pub struct SkynetClient {
    pub http: Client<HttpsConnector<HttpConnector>>,
    // some fields omitted
}

Fields

http: Client<HttpsConnector<HttpConnector>>

Implementations

impl SkynetClient[src]

pub fn new(portal_url: &str, opt: SkynetClientOptions) -> Self[src]

pub fn get_portal_url(&self) -> &str[src]

pub async fn upload_data(
    &self,
    data: HashMap<String, (Mime, Vec<u8>)>,
    opt: UploadOptions
) -> SkynetResult<String>
[src]

pub async fn upload_file<P: AsRef<Path>>(
    &self,
    path: P,
    opt: UploadOptions
) -> SkynetResult<String>
[src]

pub async fn upload_directory<P: AsRef<Path>>(
    &self,
    path: P,
    opt: UploadOptions
) -> SkynetResult<String>
[src]

pub async fn download_data(
    &self,
    skylink: &str,
    opt: DownloadOptions
) -> SkynetResult<Vec<u8>>
[src]

pub async fn download_file<P: AsRef<Path>>(
    &self,
    path: P,
    skylink: &str,
    opt: DownloadOptions
) -> SkynetResult<()>
[src]

pub async fn get_metadata(
    &self,
    skylink: &str,
    opt: MetadataOptions
) -> SkynetResult<Metadata>
[src]

Trait Implementations

impl Debug for SkynetClient[src]

impl Default for SkynetClient[src]

Auto Trait Implementations

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> Instrument 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.

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