MCPcopy Index your code

hub / github.com/ThijmenGThN/swaparr / functions

Functions22 in github.com/ThijmenGThN/swaparr

↓ 13 callersFunctiondefault
Voids provided vars and returns a default value.
src/utils/system.rs:20
↓ 11 callersFunctionalert
(method: &str, title: &str, message: &str, error: Option<String>)
src/utils/log.rs:9
↓ 8 callersFunctionexit
Delayed process exit, looks better on Windows if running without Docker.
src/utils/system.rs:31
↓ 4 callersFunctionstring_time_notation_to_ms
Converts human-readable time notation to milliseconds.
src/utils/parse.rs:20
↓ 3 callersFunctionget
Obtains Downloads from Starr, paginating through all results.
src/queue.rs:117
↓ 3 callersFunctionstring_to_bool
String to boolean translator.
src/utils/parse.rs:141
↓ 2 callersFunctionstring_bytesize_to_bytes
This will convert for example "1 TB", "512 MB", <"1.5 GB" to 1500000 (bytes)>.
src/utils/parse.rs:25
↓ 1 callersFunctionbanner
(env: &utils::system::Envs)
src/utils/log.rs:21
↓ 1 callersFunctionbaseapi
Returns the API version based on platform.
src/utils/parse.rs:65
↓ 1 callersFunctiondelete
Delete Download from Starr.
src/queue.rs:46
↓ 1 callersFunctionempty
()
src/utils/log.rs:3
↓ 1 callersFunctionenv
Returns environment variables from the host.
src/utils/system.rs:37
↓ 1 callersFunctionfetch_page
Fetches a single page from the Starr queue API.
src/queue.rs:61
↓ 1 callersFunctionms_to_eta_string
This will pretty-print an ETA from milliseconds.
src/utils/parse.rs:9
↓ 1 callersFunctionprocess
Determines if the download is eligible to be striked.
src/queue.rs:144
↓ 1 callersFunctionqueueapi
Returns the API endpoint based on platform. The returned URL does not include a `page` parameter — queue::get() appends it per request.
src/utils/parse.rs:86
↓ 1 callersFunctionrecord_to_download
Converts a Record into a Download.
src/queue.rs:88
↓ 1 callersFunctionrecordname
This function extracts the name from a record based on the provided platform.
src/utils/parse.rs:108
↓ 1 callersFunctionrender
(contents: &Vec<TableContent>)
src/libs/table.rs:14
↓ 1 callersFunctionstring_hms_to_ms
Converts human-readable string (from Starr API) to milliseconds.
src/utils/parse.rs:30
↓ 1 callersFunctiontest
(platform: &str, baseapi: &str, apikey: &str)
src/tests/api.rs:5
Functionmain
()
src/main.rs:8