pub struct ConnectionInfo {
pub space_id: [u8; 16],
pub server_id: String,
pub chosen_version: u8,
pub connection_id: [u8; 16],
pub bound_shard_id: u16,
pub permissions: SpacePermissions,
pub namespace: String,
pub server_features: ServerFeatures,
}Expand description
The connection the server granted at handshake time.
Fields§
§space_id: [u8; 16]Identity the server resolved from the credential. The client never claims one; this is who the connection turned out to be.
server_id: StringFree-form server build identifier from WELCOME, for diagnostics.
chosen_version: u8Wire version both sides settled on. Always 1 today; a value the
client did not offer is rejected as BrainError::VersionMismatch.
connection_id: [u8; 16]Per-connection identifier the server minted at WELCOME.
bound_shard_id: u16Shard this connection’s space lives on. Routing detail, surfaced for diagnostics; a client never chooses it.
permissions: SpacePermissionsWhat this credential is allowed to do. Checked server-side on every request — reading it here only lets a caller fail early.
namespace: StringOwning tenant the server bound this connection to (server-derived from
auth). Empty when the connection resolves to the reserved brain
system namespace. Read-only — the client never sends a namespace.
server_features: ServerFeaturesNegotiated limits from WELCOME (max payload, max concurrent streams, idle timeout).