pub enum Method {
Show 22 variants
ServerHello,
ServerShutdown,
BrowserLaunch,
BrowserConnect,
BrowserNewPage,
BrowserTabs,
BrowserCloseTab,
BrowserClose,
ActionsPerform,
OperationsGet,
OperationsList,
OperationsWait,
OperationsCancel,
AgentObserve,
AgentStep,
PageCaptureState,
PageRestoreState,
RecordingStart,
RecordingGet,
RecordingStop,
RecordingCancel,
PageSolveCaptcha,
}Variants§
ServerHello
ServerShutdown
BrowserLaunch
BrowserConnect
BrowserNewPage
BrowserTabs
BrowserCloseTab
BrowserClose
ActionsPerform
OperationsGet
OperationsList
OperationsWait
OperationsCancel
AgentObserve
AgentStep
PageCaptureState
PageRestoreState
RecordingStart
RecordingGet
RecordingStop
RecordingCancel
PageSolveCaptcha
Implementations§
Source§impl Method
impl Method
pub const ALL: &'static [Method]
pub fn parse(name: &str) -> Option<Self>
pub fn name(self) -> &'static str
pub fn role(self) -> MethodRole
pub fn feature(self) -> Option<&'static str>
pub fn params_schema(self) -> Value
pub fn result_schema(self) -> Value
pub fn validate(self, params: &Value) -> Result<(), ServerError>
Trait Implementations§
impl Copy for Method
impl Eq for Method
impl StructuralPartialEq for Method
Auto Trait Implementations§
impl Forget for Method
impl Freeze for Method
impl Move for Method
impl RefUnwindSafe for Method
impl Send for Method
impl Sync for Method
impl Unpin for Method
impl UnsafeUnpin for Method
impl UnwindSafe for Method
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