mirror of
https://github.com/kristoferssolo/transmission-rpc.git
synced 2025-10-21 20:10:37 +00:00
23 lines
685 B
Rust
23 lines
685 B
Rust
mod request;
|
|
mod response;
|
|
|
|
pub type Result<T> = std::result::Result<T, Box<dyn std::error::Error + Send + Sync>>;
|
|
|
|
#[derive(Debug)]
|
|
pub struct BasicAuth {
|
|
pub user: String,
|
|
pub password: String,
|
|
}
|
|
|
|
pub(crate) use self::request::RpcRequest;
|
|
pub use self::request::{
|
|
ArgumentFields, Id, SessionSetArgs, TorrentAction, TorrentAddArgs, TorrentGetField,
|
|
TorrentRenamePathArgs, TorrentSetArgs, TrackerList,
|
|
};
|
|
|
|
pub use self::response::{
|
|
BlocklistUpdate, ErrorType, FreeSpace, Nothing, PortTest, RpcResponse, RpcResponseArgument,
|
|
SessionClose, SessionGet, SessionSet, SessionStats, Torrent, TorrentAddedOrDuplicate,
|
|
TorrentRenamePath, TorrentStatus, Torrents,
|
|
};
|