Expand description
Sbd server library.
Re-exports§
pub use ws::Payload;
pub use ws::SbdWebsocket;
Modules§
- ws
- Websocket backend abstraction.
Structs§
- Auth
Token Tracker - Utility for managing auth tokens.
- CSlot
- A connection slot container.
- Config
- Configure and execute an SBD server.
- IpRate
- Rate limit connections by IP address.
- PubKey
- Public key.
- SbdServer
- SbdServer.
- TlsConfig
- RustTLS config plus cert and pk paths.
- WeakC
Slot - A weak reference to a connection slot container.
Enums§
- Authenticate
Token Error - Authenticate token error type.
- Maybe
TlsStream - A stream that might be protected with TLS.
Functions§
- handle_
upgraded - Handle an upgraded websocket connection.
- preflight_
ip_ check - If the check passes, the canonical IP is returned, otherwise None and the connection should be dropped.
- process_
authenticate_ token - Handle receiving a PUT “/authenticate” rest api request.
- spawn_
prune_ task - Spawn a Tokio task to prune the IpRate map.
- to_
canonical_ ip - Convert an IP address to an IPv6 address.