pub struct RpcServerPort<Context> {
pub name: String,
/* private fields */
}Expand description
RpcServerPort is what a RpcServer contains to handle different services/modules
Fields§
§name: StringRpcServer name
Implementations§
Source§impl<Context> RpcServerPort<Context>
impl<Context> RpcServerPort<Context>
Sourcepub fn register_module(
&mut self,
module_name: String,
service_definition: ServiceModuleDefinition<Context>,
)
pub fn register_module( &mut self, module_name: String, service_definition: ServiceModuleDefinition<Context>, )
Just register the module in the port
Auto Trait Implementations§
impl<Context> Freeze for RpcServerPort<Context>
impl<Context> !RefUnwindSafe for RpcServerPort<Context>
impl<Context> Send for RpcServerPort<Context>
impl<Context> Sync for RpcServerPort<Context>
impl<Context> Unpin for RpcServerPort<Context>
impl<Context> !UnwindSafe for RpcServerPort<Context>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more