pub struct WsConfig {
pub relay_url: String,
pub token: String,
pub encryption_key: Option<[u8; 32]>,
}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).
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