pub struct Server<B: Backend> {
pub backend: B,
/* private fields */
}Fields§
§backend: BImplementations§
Source§impl<B: Backend> Server<B>
impl<B: Backend> Server<B>
pub fn new(backend: B) -> Self
Sourcepub fn with_gate(self, gate: Arc<EffectGate>) -> Self
pub fn with_gate(self, gate: Arc<EffectGate>) -> Self
Route every effectful command (element click / send keys / screenshot) through
gate (EFF-001). Default is EffectGate::allow_all.
pub fn gate(&self) -> &Arc<EffectGate> ⓘ
pub fn handle(&mut self, method: &str, path: &str, body: &str) -> (u16, String)
Sourcepub fn serve(&mut self, listener: TcpListener, credential: &str) -> Result<()>
pub fn serve(&mut self, listener: TcpListener, credential: &str) -> Result<()>
Blocking loopback server for third-party WebDriver clients. Every request
must pass check_request: loopback peer, a Host that names this
listener, no browser Origin, and the per-launch bearer credential. There
is no unauthenticated mode: loopback alone does not identify the caller.
Auto Trait Implementations§
impl<B> !RefUnwindSafe for Server<B>
impl<B> !UnwindSafe for Server<B>
impl<B> Freeze for Server<B>where
B: Freeze,
impl<B> Send for Server<B>where
B: Send,
impl<B> Sync for Server<B>where
B: Sync,
impl<B> Unpin for Server<B>where
B: Unpin,
impl<B> UnsafeUnpin for Server<B>where
B: UnsafeUnpin,
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