pub struct Context {
pub vfs: Option<VirtualFs>,
pub registry: Option<VirtualRegistry>,
}Expand description
Top-level optional context layer. Owned by
HostState; each guest call to a
Win32 stub backed by a virtual surface goes through here.
Fields§
§vfs: Option<VirtualFs>In-memory filesystem, if attached.
registry: Option<VirtualRegistry>In-memory registry, if attached.
Implementations§
Source§impl Context
impl Context
Sourcepub fn new() -> Self
pub fn new() -> Self
Empty context — no virtual filesystem, no virtual
registry. Equivalent to Default::default.
Sourcepub fn with_registry(self, reg: VirtualRegistry) -> Self
pub fn with_registry(self, reg: VirtualRegistry) -> Self
Builder: attach the given registry.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnsafeUnpin for Context
impl UnwindSafe for Context
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