pub struct RpcServer { /* private fields */ }Implementations§
Source§impl RpcServer
impl RpcServer
pub async fn serve_connection<C>(
&self,
connection: C,
) -> Result<(), RuntimeError>where
C: Into<RpcConnection>,
pub async fn serve_listener<L>(&self, listener: L) -> Result<(), RuntimeError>where
L: RpcListener + Send,
pub fn spawn_listener<L>(
&self,
listener: L,
) -> JoinHandle<Result<(), RuntimeError>>where
L: RpcListener + Send + 'static,
pub async fn list_instances(&self) -> Vec<InstanceDescriptor>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RpcServer
impl !RefUnwindSafe for RpcServer
impl Send for RpcServer
impl Sync for RpcServer
impl Unpin for RpcServer
impl UnsafeUnpin for RpcServer
impl !UnwindSafe for RpcServer
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