pub struct PairHostRegistration { /* private fields */ }Expand description
RAII owner of Wave-1 OS capability OwnedHostOps tables backed by a PairByteTransport.
Calling Self::register_global installs them into nativeview_abi::DirectHostRegistry::global
for the lifetime of the pairing session; dropping PairHostRegistration shuts down the
transport and unregisters all ops tables cleanly.
Implementations§
Source§impl PairHostRegistration
impl PairHostRegistration
Sourcepub fn new(transport: PairByteTransport) -> Self
pub fn new(transport: PairByteTransport) -> Self
Boxes all Wave-1 generated Wire<Mod>Client<PairByteTransport> tables without modifying
DirectHostRegistry::global (call Self::register_global for production nv pair).
Sourcepub fn register_global(&self) -> Result<(), Vec<(&'static str, i32)>>
pub fn register_global(&self) -> Result<(), Vec<(&'static str, i32)>>
Registers all wire-backed host ops tables into nativeview_abi::DirectHostRegistry::global.
Returns any failed (module_name, status_code) entries so callers can log or abort.
pub fn transport(&self) -> &PairByteTransport
pub fn clipboard_ops(&self) -> &OwnedHostOps<NvModClipboardHostOps>
pub fn linking_ops(&self) -> &OwnedHostOps<NvModLinkingHostOps>
pub fn system_env_ops(&self) -> &OwnedHostOps<NvModSystemEnvHostOps>
Trait Implementations§
Source§impl Drop for PairHostRegistration
impl Drop for PairHostRegistration
Auto Trait Implementations§
impl !Freeze for PairHostRegistration
impl Forget for PairHostRegistration
impl Move for PairHostRegistration
impl RefUnwindSafe for PairHostRegistrationwhere
Atomic<usize>: RefUnwindSafe,
RwLock<Vec<RetainedSnapshot>>: RefUnwindSafe,
RwLock<Vec<RegisteredSurface>>: RefUnwindSafe,
RwLock<Vec<Arc<ObserverSlot>>>: RefUnwindSafe,
Atomic<bool>: RefUnwindSafe,
Atomic<u64>: RefUnwindSafe,
Mutex<VecDeque<u32>>: RefUnwindSafe,
Mutex<HashMap<u64, PendingCall>>: RefUnwindSafe,
Mutex<VecDeque<(u32, Bytes)>>: RefUnwindSafe,
Notify: RefUnwindSafe,
Mutex<Option<JoinHandle<()>>>: RefUnwindSafe,
impl Send for PairHostRegistrationwhere
Arc<PairTransportInner>: Send,
OwnedHostOps<NvModClipboardHostOps>: Send,
OwnedHostOps<NvModLinkingHostOps>: Send,
OwnedHostOps<NvModSystemEnvHostOps>: Send,
impl Sync for PairHostRegistrationwhere
Arc<PairTransportInner>: Sync,
OwnedHostOps<NvModClipboardHostOps>: Sync,
OwnedHostOps<NvModLinkingHostOps>: Sync,
OwnedHostOps<NvModSystemEnvHostOps>: Sync,
impl Unpin for PairHostRegistrationwhere
Arc<PairTransportInner>: Unpin,
*const NvModClipboardHostOps is !null: Unpin,
Arc<OwnedOpsPin>: Unpin,
Align1<u8>: Unpin,
*const NvModLinkingHostOps is !null: Unpin,
*const NvModSystemEnvHostOps is !null: Unpin,
impl UnsafeUnpin for PairHostRegistrationwhere
*const ArcInner<PairTransportInner> is !null: UnsafeUnpin,
PhantomData<ArcInner<PairTransportInner>>: UnsafeUnpin,
*const NvModClipboardHostOps is !null: UnsafeUnpin,
*const ArcInner<OwnedOpsPin> is !null: UnsafeUnpin,
PhantomData<ArcInner<OwnedOpsPin>>: UnsafeUnpin,
Align1<u8>: UnsafeUnpin,
*const NvModLinkingHostOps is !null: UnsafeUnpin,
*const NvModSystemEnvHostOps is !null: UnsafeUnpin,
impl UnwindSafe for PairHostRegistrationwhere
Arc<PairTransportInner>: UnwindSafe,
NonNull<NvModClipboardHostOps>: UnwindSafe,
Arc<OwnedOpsPin>: UnwindSafe,
Align1<u8>: UnwindSafe,
NonNull<NvModLinkingHostOps>: UnwindSafe,
NonNull<NvModSystemEnvHostOps>: UnwindSafe,
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