pub(crate) struct BrowserType {
channel: ChannelOwner,
name: String,
executable: PathBuf,
}Fields§
§channel: ChannelOwner§name: String§executable: PathBufImplementations§
Source§impl BrowserType
impl BrowserType
pub(crate) fn try_new(channel: ChannelOwner) -> Result<Self, Error>
pub(crate) fn name(&self) -> &str
pub(crate) fn executable(&self) -> &Path
pub(crate) async fn launch( &self, args: LaunchArgs<'_, '_, '_>, ) -> Result<Weak<Browser>, Arc<Error>>
pub(crate) async fn launch_persistent_context( &self, args: LaunchPersistentContextArgs<'_, '_, '_, '_, '_, '_, '_, '_, '_, '_, '_>, ) -> Result<Weak<BrowserContext>, Arc<Error>>
pub(crate) async fn connect_over_cdp( &self, args: ConnectOverCdpArgs<'_>, ) -> Result<Weak<Browser>, Arc<Error>>
pub(crate) async fn connect( &self, args: ConnectArgs<'_>, ) -> Result<Weak<Browser>, Arc<Error>>
Trait Implementations§
Source§impl Debug for BrowserType
impl Debug for BrowserType
Source§impl RemoteObject for BrowserType
impl RemoteObject for BrowserType
fn channel(&self) -> &ChannelOwner
fn channel_mut(&mut self) -> &mut ChannelOwner
fn guid(&self) -> &S<Guid>
fn context(&self) -> Result<Arc<Mutex<Context>>, Error>
fn handle_event( &self, _ctx: &Context, _method: Str<Method>, _params: Map<String, Value>, ) -> Result<(), Error>
Auto Trait Implementations§
impl !Freeze for BrowserType
impl RefUnwindSafe for BrowserType
impl Send for BrowserType
impl Sync for BrowserType
impl Unpin for BrowserType
impl UnwindSafe for BrowserType
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