pub struct Bridge { /* private fields */ }Expand description
The Python bridge for plugin execution
Implementations§
Source§impl Bridge
impl Bridge
pub fn invoke_plugin( &self, target: &str, config_json: &str, stdin_json: Option<&str>, plugin_metadata: Option<&Plugin>, ) -> Result<PluginInvocationResult, BridgeError>
pub fn invoke_plugin_with_bindings( &self, target: &str, config_json: &str, stdin_json: Option<&str>, runtime_bindings: Option<&RuntimeBindings>, ) -> Result<PluginInvocationResult, BridgeError>
Source§impl Bridge
impl Bridge
Sourcepub fn get() -> Result<&'static Bridge, BridgeError>
pub fn get() -> Result<&'static Bridge, BridgeError>
Get or initialize the bridge singleton
Sourcepub fn is_python_available() -> bool
pub fn is_python_available() -> bool
Check if Python is available without initializing
Sourcepub fn reconfigure_logging_for_plugin(
_plugin_name: &str,
) -> Result<(), BridgeError>
pub fn reconfigure_logging_for_plugin( _plugin_name: &str, ) -> Result<(), BridgeError>
Reconfigure Python logging for a specific plugin
Auto Trait Implementations§
impl Freeze for Bridge
impl RefUnwindSafe for Bridge
impl Send for Bridge
impl Sync for Bridge
impl Unpin for Bridge
impl UnwindSafe for Bridge
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
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