Skip to main content

HostBinding

Struct HostBinding 

Source
pub struct HostBinding { /* private fields */ }
Expand description

A complete host installation, including its operative callback policy.

Choosing Unrestricted explicitly changes hook execution; it grants no private source ownership or permission to skip evaluator work. Unrestricted execution can only be selected in ordinary cache domain zero, never in an independent permission-bearing cache domain. No public constructor mints an unrestricted binding; a displaced snapshot can retain an admitted domain-zero policy. A displaced binding retains its installed cache domain for complete restoration; a fresh constructor queries the host at installation, like plain replacement.

use dive_eval::HostBinding;
let previous = ev.replace_host_binding(HostBinding::callback(Some(host)));
// The driver owns installation until the complete predecessor is restored.
drop(ev.replace_host_binding(previous));

Implementations§

Source§

impl HostBinding

Source

pub fn callback(host: Option<Arc<dyn Host>>) -> Self

Install normal callbacks, including the no-host case.

Source

pub const fn native_hooks(&self) -> NativeHooks

The installed native callback policy.

Trait Implementations§

Source§

impl Debug for HostBinding

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.