pub struct NativeClient { /* private fields */ }Expand description
A loaded plugin library speaking ABI 1.
Implementations§
Source§impl NativeClient
impl NativeClient
Sourcepub fn open(
path: &Path,
plugin_id: &str,
handler: Arc<dyn CallbackHandler>,
instance: Arc<CallbackInstance>,
) -> Result<Self, String>
pub fn open( path: &Path, plugin_id: &str, handler: Arc<dyn CallbackHandler>, instance: Arc<CallbackInstance>, ) -> Result<Self, String>
Go dynamicLibraryLoader.Open: dlopen, resolve cliproxy_plugin_init, hand it the
host table and validate the plugin table.
pub fn instance(&self) -> &Arc<CallbackInstance> ⓘ
Trait Implementations§
Source§impl Drop for NativeClient
impl Drop for NativeClient
Source§impl PluginClient for NativeClient
Available on Unix only.
impl PluginClient for NativeClient
Available on Unix only.
impl Send for NativeClient
impl Sync for NativeClient
Auto Trait Implementations§
impl !Freeze for NativeClient
impl Forget for NativeClient
impl Move for NativeClient
impl RefUnwindSafe for NativeClient
impl Unpin for NativeClient
impl UnsafeUnpin for NativeClient
impl UnwindSafe for NativeClient
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more