Skip to main content

RobonixPrimitiveGripperState

Trait RobonixPrimitiveGripperState 

Source
pub trait RobonixPrimitiveGripperState:
    Send
    + Sync
    + 'static {
    type StateStream: Stream<Item = Result<GripperState, Status>> + Send + 'static;

    // Required method
    fn state<'life0, 'async_trait>(
        &'life0 self,
        request: Request<()>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<Self::StateStream>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Generated trait containing gRPC methods that should be implemented for use with RobonixPrimitiveGripperStateServer.

Required Associated Types§

Source

type StateStream: Stream<Item = Result<GripperState, Status>> + Send + 'static

Server streaming response type for the State method.

Required Methods§

Source

fn state<'life0, 'async_trait>( &'life0 self, request: Request<()>, ) -> Pin<Box<dyn Future<Output = Result<Response<Self::StateStream>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

浙ICP备2023005800号-2 浙公网安备33010902005384号