pub struct AppServerManager { /* private fields */ }Implementations§
Source§impl AppServerManager
impl AppServerManager
pub fn new( launch_config: AppServerLaunchConfig, inbound_tx: UnboundedSender<AppServerInbound>, ) -> Self
pub fn runtime_id(&self) -> &str
pub async fn start(&self) -> Result<()>
pub async fn stop(&self) -> Result<()>
pub async fn restart(&self) -> Result<()>
pub async fn request(&self, method: &str, params: Value) -> Result<Value>
pub async fn respond(&self, id: Value, result: Value) -> Result<()>
pub async fn respond_error( &self, id: Value, code: i64, message: &str, ) -> Result<()>
Auto Trait Implementations§
impl !Freeze for AppServerManager
impl !RefUnwindSafe for AppServerManager
impl Send for AppServerManager
impl Sync for AppServerManager
impl Unpin for AppServerManager
impl UnsafeUnpin for AppServerManager
impl !UnwindSafe for AppServerManager
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