pub struct ProtocolRuntimeContext<'a> { /* private fields */ }Expand description
Narrow wrapper around LashRuntime that protocol plugins use when
configuring the runtime from a fresh SessionCreateRequest.
Exposes only the runtime-level capabilities protocols need to set (termination contract, etc.) so plugins don’t reach into unrelated runtime internals.
Implementations§
Source§impl<'a> ProtocolRuntimeContext<'a>
impl<'a> ProtocolRuntimeContext<'a>
Sourcepub fn protocol_turn_options(&self) -> &ProtocolTurnOptions
pub fn protocol_turn_options(&self) -> &ProtocolTurnOptions
The durable protocol turn options currently recorded on the session. Protocol plugins read these to preserve fields (e.g. termination) they are not overwriting.
Sourcepub fn set_protocol_turn_options(&mut self, options: ProtocolTurnOptions)
pub fn set_protocol_turn_options(&mut self, options: ProtocolTurnOptions)
Set the durable protocol turn options and mirror them to the current agent frame only.
Sourcepub fn set_protocol_turn_options_all_frames(
&mut self,
options: ProtocolTurnOptions,
)
pub fn set_protocol_turn_options_all_frames( &mut self, options: ProtocolTurnOptions, )
Set the durable protocol turn options and mirror them to every agent frame. Apply-at-open semantics: the last applied value is recorded on the session and all frames.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ProtocolRuntimeContext<'a>
impl<'a> !UnwindSafe for ProtocolRuntimeContext<'a>
impl<'a> Freeze for ProtocolRuntimeContext<'a>
impl<'a> Send for ProtocolRuntimeContext<'a>
impl<'a> Sync for ProtocolRuntimeContext<'a>
impl<'a> Unpin for ProtocolRuntimeContext<'a>
impl<'a> UnsafeUnpin for ProtocolRuntimeContext<'a>
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