pub struct DynamicBridgeLoader {
pub directory: String,
/* private fields */
}Expand description
Dynamic bridge loader for loading bridges from shared libraries
Fields§
§directory: StringDirectory to scan for bridge libraries
Implementations§
Source§impl DynamicBridgeLoader
impl DynamicBridgeLoader
Sourcepub fn registry(&self) -> &BridgeRegistry
pub fn registry(&self) -> &BridgeRegistry
Get a reference to the registry
Sourcepub fn registry_mut(&mut self) -> &mut BridgeRegistry
pub fn registry_mut(&mut self) -> &mut BridgeRegistry
Get a mutable reference to the registry
pub fn with_context(self, context: Arc<BridgeContext>) -> Self
Trait Implementations§
Source§impl BridgeLoader for DynamicBridgeLoader
impl BridgeLoader for DynamicBridgeLoader
Source§fn load_bridges(&mut self) -> Result<Vec<BoxedBridge>>
fn load_bridges(&mut self) -> Result<Vec<BoxedBridge>>
Load bridges from a source
Auto Trait Implementations§
impl !RefUnwindSafe for DynamicBridgeLoader
impl !UnwindSafe for DynamicBridgeLoader
impl Freeze for DynamicBridgeLoader
impl Send for DynamicBridgeLoader
impl Sync for DynamicBridgeLoader
impl Unpin for DynamicBridgeLoader
impl UnsafeUnpin for DynamicBridgeLoader
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> 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