pub struct ChromiumBackend { /* private fields */ }Expand description
Backend implementation that speaks the Chromium IPC protocol.
Implementations§
Source§impl ChromiumBackend
impl ChromiumBackend
Sourcepub fn new(options: ChromiumBackendOptions, client: IpcClient) -> Self
pub fn new(options: ChromiumBackendOptions, client: IpcClient) -> Self
Create a backend from a pre-connected IPC client.
Trait Implementations§
Source§impl Backend for ChromiumBackend
impl Backend for ChromiumBackend
type RawCommand = ChromeCommand
type RawEvent = ChromeEvent
type RawDelegate = Box<dyn ChromeRawDelegate>
Source§fn to_raw_command(command: BrowserCommand) -> Self::RawCommand
fn to_raw_command(command: BrowserCommand) -> Self::RawCommand
Converts a browser-generic command into backend-native raw command.
Source§fn to_generic_event(raw: &Self::RawEvent) -> Option<BrowserEvent>
fn to_generic_event(raw: &Self::RawEvent) -> Option<BrowserEvent>
Converts a backend-native raw event into browser-generic event if possible.
Source§fn connect<D: BackendDelegate>(
self,
delegate: D,
raw_delegate: Option<Self::RawDelegate>,
) -> Result<(CommandSender<Self>, EventStream<Self>), Error>
fn connect<D: BackendDelegate>( self, delegate: D, raw_delegate: Option<Self::RawDelegate>, ) -> Result<(CommandSender<Self>, EventStream<Self>), Error>
Establish a command/event channel pair for this backend.
Auto Trait Implementations§
impl Freeze for ChromiumBackend
impl RefUnwindSafe for ChromiumBackend
impl Send for ChromiumBackend
impl !Sync for ChromiumBackend
impl Unpin for ChromiumBackend
impl UnsafeUnpin for ChromiumBackend
impl UnwindSafe for ChromiumBackend
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