pub struct BootstrapInfo {
pub protocol_version: u8,
pub protocol_base: String,
pub invoke_key: String,
pub channels: Vec<String>,
}Expand description
Connection info returned to the frontend during bootstrap.
Fields§
§protocol_version: u8Protocol version (currently 1). Allows the TS client to verify
protocol compatibility.
protocol_base: StringBase URL for the custom protocol (e.g., "conduit://localhost").
invoke_key: StringPer-launch invoke key for custom protocol authentication (hex-encoded).
Security: This key authenticates custom protocol requests. It is
generated fresh each launch from 32 bytes of OS randomness and validated
using constant-time comparison. The JS client includes it as the
X-Conduit-Key header on every conduit:// request.
channels: Vec<String>Available channel names.
Trait Implementations§
Source§impl Clone for BootstrapInfo
impl Clone for BootstrapInfo
Source§fn clone(&self) -> BootstrapInfo
fn clone(&self) -> BootstrapInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BootstrapInfo
impl Debug for BootstrapInfo
Source§impl<'de> Deserialize<'de> for BootstrapInfo
impl<'de> Deserialize<'de> for BootstrapInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BootstrapInfo
impl RefUnwindSafe for BootstrapInfo
impl Send for BootstrapInfo
impl Sync for BootstrapInfo
impl Unpin for BootstrapInfo
impl UnsafeUnpin for BootstrapInfo
impl UnwindSafe for BootstrapInfo
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