pub struct GRpcBroker { /* private fields */ }Implementations§
Source§impl GRpcBroker
impl GRpcBroker
pub fn new( unique_port: UniquePort, outgoing_conninfo_sender: UnboundedSender<Result<ConnInfo, Status>>, incoming_conninfo_stream_receiver_receiver: UnboundedReceiver<Streaming<ConnInfo>>, listener: Listener, ) -> Self
pub async fn new_grpc_server<S>( &mut self, plugin: S, ) -> Result<ServiceId, Error>
pub async fn new_grpc_server_with_service_id<S>( &mut self, service_id: ServiceId, plugin: S, ) -> Result<ServiceId, Error>
pub fn get_unused_service_id(&mut self) -> u32
pub fn get_unused_port(&mut self) -> Option<u16>
pub async fn dial_to_host_service( &mut self, service_id: ServiceId, ) -> Result<Channel, Error>
Auto Trait Implementations§
impl Freeze for GRpcBroker
impl !RefUnwindSafe for GRpcBroker
impl Send for GRpcBroker
impl Sync for GRpcBroker
impl Unpin for GRpcBroker
impl !UnwindSafe for GRpcBroker
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request