pub(crate) struct Browser {
channel: ChannelOwner,
version: String,
var: Mutex<Variable>,
}Fields§
§channel: ChannelOwner§version: String§var: Mutex<Variable>Implementations§
Source§impl Browser
impl Browser
pub(crate) fn contexts(&self) -> Vec<Weak<BrowserContext>>
pub(crate) fn push_context(&self, c: Weak<BrowserContext>)
pub(super) fn remove_context(&self, c: &Weak<BrowserContext>)
pub(crate) fn is_remote(&self) -> bool
pub(crate) fn set_is_remote_true(&self)
pub(crate) async fn new_context( &self, args: NewContextArgs<'_, '_, '_, '_, '_, '_, '_>, ) -> Result<Weak<BrowserContext>, Arc<Error>>
fn register_new_context( &self, c: Weak<BrowserContext>, ) -> Result<(), Arc<Error>>
Trait Implementations§
Source§impl RemoteObject for Browser
impl RemoteObject for Browser
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 Browser
impl RefUnwindSafe for Browser
impl Send for Browser
impl Sync for Browser
impl Unpin for Browser
impl UnwindSafe for Browser
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