[][src]Struct pir_8_emu::binutils::pir_8_emu::NativePortHandler

pub struct NativePortHandler {
    pub path: OsString,
    // some fields omitted
}

A PortHandler using the native API defined in RawNativePortHandler

Funxions taking state are no-ops/return 0 if init() wasn't called, and init() is a no-op if already called and not uninit()ed

Fields

path: OsString

The path passed to load_from_dll() on creation

Methods

impl NativePortHandler[src]

pub fn load_from_dll<P: Into<OsString>>(
    path: P
) -> Result<NativePortHandler, DlOpenError>
[src]

Load the handler from the DLL at the specified path

If successful, the returned handler is ready to be used in Ports

Trait Implementations

impl Debug for NativePortHandler[src]

impl PortHandler for NativePortHandler[src]

Auto Trait Implementations

impl RefUnwindSafe for NativePortHandler

impl !Send for NativePortHandler

impl !Sync for NativePortHandler

impl Unpin for NativePortHandler

impl UnwindSafe for NativePortHandler

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.