pub struct VM { /* private fields */ }
Expand description
虚拟机对象
§Examples
let vm = VM::new(r#"C:\Program Files (x86)\Appeon\Shared\PowerBuilder\PBVM190.DLL"#).unwrap();
let session = vm.new_session("pbrs", &[r#"pbrs\pbw\pbrs.pbl"#]).unwrap();
Implementations§
Source§impl VM
impl VM
Sourcepub fn new_session<'a>(
&'a self,
applicationName: impl AsPBStr,
libraryList: &[impl AsPBStr],
) -> Result<OwnedSession<'a>>
pub fn new_session<'a>( &'a self, applicationName: impl AsPBStr, libraryList: &[impl AsPBStr], ) -> Result<OwnedSession<'a>>
新建Session对象
Sourcepub fn run_application<'a>(
&'a self,
applicationName: impl AsPBStr,
libraryList: &[impl AsPBStr],
commandLine: impl AsPBStr,
) -> Result<OwnedSession<'a>>
pub fn run_application<'a>( &'a self, applicationName: impl AsPBStr, libraryList: &[impl AsPBStr], commandLine: impl AsPBStr, ) -> Result<OwnedSession<'a>>
运行PB工程
Auto Trait Implementations§
impl Freeze for VM
impl RefUnwindSafe for VM
impl !Send for VM
impl !Sync for VM
impl Unpin for VM
impl UnwindSafe for VM
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