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
impl HostBinding
Sourcepub fn callback(host: Option<Arc<dyn Host>>) -> Self
pub fn callback(host: Option<Arc<dyn Host>>) -> Self
Install normal callbacks, including the no-host case.
Sourcepub const fn native_hooks(&self) -> NativeHooks
pub const fn native_hooks(&self) -> NativeHooks
The installed native callback policy.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for HostBinding
impl !UnwindSafe for HostBinding
impl Forget for HostBinding
impl Freeze for HostBinding
impl Move for HostBinding
impl Send for HostBinding
impl Sync for HostBinding
impl Unpin for HostBinding
impl UnsafeUnpin for HostBinding
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