pub struct WsConfig {
pub relay_url: String,
pub token: String,
pub encryption_key: Option<[u8; 32]>,
pub client_info: Option<ClientInfo>,
}Fields§
§relay_url: StringBase relay URL (http/https). The ws module exchanges a short-lived ticket from POST /ws/ticket before connecting; the bearer token never appears in the WebSocket URL or server access logs.
token: StringBearer token used to obtain a WS ticket from POST /ws/ticket.
encryption_key: Option<[u8; 32]>32-byte AES key used to decrypt incoming encrypted=true clips.
Pass None to skip decryption (encrypted clips reach the caller
with clip.content set to ciphertext).
client_info: Option<ClientInfo>Optional self-identification. When Some, the client sends a single
client_hello WS frame right after connect (before entering the read
loop) so the relay can record the caller’s binary type + version
without a follow-up REST call. None preserves the legacy behavior
of staying silent until the first server frame arrives.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WsConfig
impl RefUnwindSafe for WsConfig
impl Send for WsConfig
impl Sync for WsConfig
impl Unpin for WsConfig
impl UnsafeUnpin for WsConfig
impl UnwindSafe for WsConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more