Docs.rs
purple-ssh-3.16.0
purple-ssh 3.16.0
Docs.rs crate page
MIT
Links
Homepage
Repository
crates.io
Source
Owners
erickochen
Dependencies
anyhow ^1
normal
base64 ^0.22
normal
clap ^4
normal
clap_complete ^4
normal
crossterm ^0.29
normal
dirs ^6
normal
glob ^0.3
normal
hmac ^0.12
normal
libc ^0.2
normal
log ^0.4
normal
nucleo-matcher ^0.3
normal
quick-xml ^0.40
normal
ratatui ^0.30
normal
rsa ^0.9
normal
semver ^1
normal
serde ^1
normal
serde_json ^1
normal
sha1 ^0.11
normal
sha2 ^0.10
normal
simplelog ^0.12
normal
thiserror ^2
normal
unicode-width ^0.2.2
normal
ureq ^3
normal
mockito ^1.7.2
dev
proptest ^1
dev
tempfile ^3
dev
openssl ^0.10
normal
netlink-packet-core ^0.7
normal
netlink-packet-sock-diag ^0.4
normal
netlink-sys ^0.8
normal
Versions
44.76%
of the crate is documented
Go to latest version
Platform
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Skip to main content
Module logging
purple_
ssh
3.16.0
Module logging
Module Items
Structs
Functions
In crate purple_
ssh
purple_ssh
Module
logging
Copy item path
Source
Structs
§
Banner
Info
Startup banner info. Struct avoids argument-order bugs between &str params.
Functions
§
detect_
ssh_
version
Detect SSH version by running
ssh -V
(output goes to stderr). Uses a 2-second timeout via mpsc channel to avoid hanging startup if the ssh binary is broken or on a slow filesystem.
init
Initialize logging. Call once at the start of main().
level_
name
Return the effective log level name as a lowercase string.
log_
path
Return the path to the log file: ~/.purple/purple.log
write_
banner
Write startup banner directly to log file, bypassing level filters. All timestamps are UTC (suffixed with Z).