pub struct Options {
pub adapter_name: String,
pub adapter_version: String,
pub capabilities: Vec<Capability>,
pub limits: Limits,
pub write_timeout: Option<Duration>,
pub probe: Option<ProbeInfo>,
pub debug: Option<Arc<DebugLog>>,
pub evidence_registry: Option<Registry>,
}Expand description
How a client identifies itself and what it can provide.
Fields§
§adapter_name: StringAdapter name sent in the handshake.
adapter_version: StringAdapter version sent in the handshake.
capabilities: Vec<Capability>Capabilities announced to the driver.
limits: LimitsLimits in force until hello-ack replaces them.
write_timeout: Option<Duration>Bound on a single frame write. None disables it, which is only sane
for a caller that publishes off the render path.
probe: Option<ProbeInfo>What a probe says it can observe. None for a hand-written adapter,
which is what the driver assumes by default.
debug: Option<Arc<DebugLog>>Adapter-side diagnostic log, or None for silence — which is what
Options::new leaves here unless TERMWRIGHT_DEBUG_FILE names a
file. Shared rather than owned so an adapter can log alongside the
client on the same file.
evidence_registry: Option<Registry>Application evidence registry frozen before hello.
Implementations§
Source§impl Options
impl Options
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnsafeUnpin for Options
impl UnwindSafe for Options
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