pub struct Server { /* private fields */ }
Implementations
sourceimpl Server
impl Server
pub fn register_rpc_handler(
&mut self,
service_method: String,
rpc_handler: impl RpcHandler
) -> Result<()>
pub fn register_async_rpc_handler(
&mut self,
service_method: String,
rpc_handler: impl AsyncRpcHandler
) -> Result<()>
pub fn rpc_count(&self) -> usize
pub fn interrupt(&self)
pub fn make_server<S: Into<ServerIdentifier>>(name: S) -> Self
Auto Trait Implementations
impl !RefUnwindSafe for Server
impl Send for Server
impl Sync for Server
impl Unpin for Server
impl !UnwindSafe for Server
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more