Struct norgopolis_client::ConnectionHandle
source · pub struct ConnectionHandle(_);Implementations§
source§impl ConnectionHandle
impl ConnectionHandle
pub fn invoke_raw<'a>( &'a mut self, module: String, function_name: String, args: Option<MessagePack> ) -> impl Future<Output = Result<Response<Streaming<MessagePack>>, Status>> + 'a
pub async fn invoke<'a, TargetStruct, F>( &'a mut self, module: String, function_name: String, args: Option<MessagePack>, callback: F ) -> Result<()>where F: Fn(TargetStruct), TargetStruct: DeserializeOwned,
pub async fn invoke_collect<TargetStruct>( &mut self, module: String, function_name: String, args: Option<MessagePack> ) -> Result<Vec<TargetStruct>>where TargetStruct: DeserializeOwned,
Auto Trait Implementations§
impl !RefUnwindSafe for ConnectionHandle
impl Send for ConnectionHandle
impl Sync for ConnectionHandle
impl Unpin for ConnectionHandle
impl !UnwindSafe for ConnectionHandle
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