pub struct RpcServerBuilder { /* private fields */ }Implementations§
Source§impl RpcServerBuilder
impl RpcServerBuilder
pub fn new() -> Self
pub fn register_named_instance( &mut self, name: impl Into<String>, service_guid: ServiceGuid, methods: impl IntoIterator<Item = u32>, handler: Arc<dyn RpcServiceHandler>, ) -> InstanceId
pub fn register_singleton( &mut self, service_guid: ServiceGuid, methods: impl IntoIterator<Item = u32>, handler: Arc<dyn RpcServiceHandler>, ) -> InstanceId
pub fn register_factory( &mut self, service_guid: ServiceGuid, methods: impl IntoIterator<Item = u32>, factory: Arc<dyn RpcServiceFactory>, )
pub fn build(self) -> RpcServer
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for RpcServerBuilder
impl !RefUnwindSafe for RpcServerBuilder
impl Send for RpcServerBuilder
impl Sync for RpcServerBuilder
impl Unpin for RpcServerBuilder
impl UnsafeUnpin for RpcServerBuilder
impl !UnwindSafe for RpcServerBuilder
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