pub trait Server {
// Provided methods
fn get_server_info(
&mut self,
_: GetServerInfoParams,
_: GetServerInfoResults,
) -> Promise<(), Error> { ... }
fn new_session(
&mut self,
_: NewSessionParams,
_: NewSessionResults,
) -> Promise<(), Error> { ... }
fn close_session(
&mut self,
_: CloseSessionParams,
_: CloseSessionResults,
) -> Promise<(), Error> { ... }
fn submit(
&mut self,
_: SubmitParams,
_: SubmitResults,
) -> Promise<(), Error> { ... }
fn unkeep(
&mut self,
_: UnkeepParams,
_: UnkeepResults,
) -> Promise<(), Error> { ... }
fn wait(&mut self, _: WaitParams, _: WaitResults) -> Promise<(), Error> { ... }
fn wait_some(
&mut self,
_: WaitSomeParams,
_: WaitSomeResults,
) -> Promise<(), Error> { ... }
fn get_state(
&mut self,
_: GetStateParams,
_: GetStateResults,
) -> Promise<(), Error> { ... }
fn terminate_server(
&mut self,
_: TerminateServerParams,
_: TerminateServerResults,
) -> Promise<(), Error> { ... }
fn fetch(&mut self, _: FetchParams, _: FetchResults) -> Promise<(), Error> { ... }
}Provided Methods§
fn get_server_info( &mut self, _: GetServerInfoParams, _: GetServerInfoResults, ) -> Promise<(), Error>
fn new_session( &mut self, _: NewSessionParams, _: NewSessionResults, ) -> Promise<(), Error>
fn close_session( &mut self, _: CloseSessionParams, _: CloseSessionResults, ) -> Promise<(), Error>
fn submit(&mut self, _: SubmitParams, _: SubmitResults) -> Promise<(), Error>
fn unkeep(&mut self, _: UnkeepParams, _: UnkeepResults) -> Promise<(), Error>
fn wait(&mut self, _: WaitParams, _: WaitResults) -> Promise<(), Error>
fn wait_some( &mut self, _: WaitSomeParams, _: WaitSomeResults, ) -> Promise<(), Error>
fn get_state( &mut self, _: GetStateParams, _: GetStateResults, ) -> Promise<(), Error>
fn terminate_server( &mut self, _: TerminateServerParams, _: TerminateServerResults, ) -> Promise<(), Error>
fn fetch(&mut self, _: FetchParams, _: FetchResults) -> Promise<(), Error>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".