pub trait SessionStartEnvironmentPolicy {
// Required method
fn session_start_wire_fields(self) -> (i32, bool);
}Expand description
Converts a caller’s environment policy into the two frozen fields carried
by a v2 broker::v2::SessionStart.
The root crate implements this for its public EnvironmentPolicy, keeping
broker::v2::SessionStart::with_environment_policy an inherent method
for downstream callers. Keeping the conversion boundary here avoids a
dependency from this optional protocol crate back to the core facade.
Required Methods§
Sourcefn session_start_wire_fields(self) -> (i32, bool)
fn session_start_wire_fields(self) -> (i32, bool)
Return (environment_policy, clear_inherited_env) for the wire frame.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".