pub struct BrowserPlugin {
pub name: String,
pub description: String,
pub config: BrowserConfig,
pub service: Option<Arc<BrowserService>>,
}Fields§
§name: String§description: String§config: BrowserConfig§service: Option<Arc<BrowserService>>Implementations§
Source§impl BrowserPlugin
impl BrowserPlugin
pub fn new(config: BrowserConfig) -> Self
pub async fn init(&mut self) -> Result<(), String>
pub async fn stop(&mut self)
pub async fn handle_action( &self, action_name: &str, message: &str, ) -> Result<ActionResult, String>
pub async fn get_provider(&self, provider_name: &str) -> Result<Value, String>
Auto Trait Implementations§
impl Freeze for BrowserPlugin
impl !RefUnwindSafe for BrowserPlugin
impl Send for BrowserPlugin
impl Sync for BrowserPlugin
impl Unpin for BrowserPlugin
impl UnsafeUnpin for BrowserPlugin
impl !UnwindSafe for BrowserPlugin
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