Struct norgopolis_client::ConnectionHandle
source · pub struct ConnectionHandle(/* private fields */);Implementations§
source§impl ConnectionHandle
impl ConnectionHandle
pub fn invoke_raw( &mut self, module: String, function_name: String, args: Option<MessagePack> ) -> impl Future<Output = Result<Response<Streaming<MessagePack>>, Status>> + '_
pub async fn invoke_raw_callback<F>(
&mut self,
module: String,
function_name: String,
args: Option<MessagePack>,
callback: F
) -> Result<()>where
F: Fn(MessagePack),
pub async fn invoke<TargetStruct, F>(
&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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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