ic-asset 0.29.0

Library for storing files in an asset canister.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use ic_agent::AgentError;
use thiserror::Error;

/// Errors related to creating a chunk.
#[derive(Error, Debug)]
pub enum CreateChunkError {
    /// Failed in call to create_chunk, or in waiting for response.
    #[error("Failed to create chunk")]
    CreateChunk(#[source] AgentError),

    /// Failed in call to create_chunks, or in waiting for response.
    #[error("Failed to create chunks")]
    CreateChunks(#[source] AgentError),

    /// Failed to decode the create chunk response.
    #[error("Failed to decode create chunk response")]
    DecodeCreateChunkResponse(#[source] candid::Error),
}