Expand description
rusty-cat public SDK crate.
This crate exposes high-level APIs to enqueue and control upload/download tasks with breakpoint resume support.
For beginners, start from api or directly use meow_client::MeowClient
and meow_config::MeowConfig.
§Quick example
use rusty_cat::api::{MeowClient, MeowConfig, UploadPounceBuilder};
let config = MeowConfig::builder()
.max_upload_concurrency(2)
.max_download_concurrency(2)
.build()?;
let client = MeowClient::new(config);
let _task = UploadPounceBuilder::new("file.bin", "./file.bin", 1024 * 1024)
.with_url("https://example.com/upload")
.build();
let _ = client;§Panic policy (enforced)
Production SDK code must never panic: any fallible path returns
Result<_, error::MeowError> and logs the failure at log::LogLevel::Error
(see meow_error_log). The lint block below makes a panic-trigger in
non-test code a compile-time error under cargo clippy, freezing this
guarantee. Tests, doctests and examples are exempt.
Re-exports§
pub use api::*;
Modules§
- api
- Public API export hub for
rusty-cat. - chunk_
outcome - direction
- down_
pounce_ builder - error
- file_
transfer_ record - http_
breakpoint - Breakpoint upload/download protocol plugins.
- ids
- log
- Flow-level debug logging utilities.
- meow_
client - meow_
config - pounce_
task - prepare_
outcome - transfer_
executor_ trait - transfer_
snapshot - transfer_
status - transfer_
task - up_
pounce_ builder - upload_
trait
Macros§
- meow_
error_ log - Internal error logging macro (
LogLevel::Error). - meow_
flow_ log - Internal flow debug logging macro (
LogLevel::Debug). - meow_
key_ log - Internal key-node logging macro (
LogLevel::Key). - meow_
trace_ log - Internal trace logging macro (
LogLevel::Trace). - meow_
warn_ log - Internal warning logging macro.