pub struct DataRequestServer {
mod_config: Config,
object_tracker: Arc<ObjectTracker>,
move_handles: Arc<MoveHandleMap>,
data_request_client: Arc<DataRequestClient>,
data_exchange_client: Arc<DataExchangeClient>,
signature_options: SignatureOptions,
async_rt_manager: Arc<AsyncRuntimeManager>,
}Fields§
§mod_config: Config§object_tracker: Arc<ObjectTracker>§move_handles: Arc<MoveHandleMap>§data_request_client: Arc<DataRequestClient>§data_exchange_client: Arc<DataExchangeClient>§signature_options: SignatureOptions§async_rt_manager: Arc<AsyncRuntimeManager>Implementations§
source§impl DataRequestServer
impl DataRequestServer
pub fn new( mod_config: Config, object_tracker: Arc<ObjectTracker>, move_handles: Arc<MoveHandleMap>, data_request_client: AsyncArc<DataRequestClient>, data_exchange_client: AsyncArc<DataExchangeClient>, config: &RSyncConfig, async_rt_manager: Arc<AsyncRuntimeManager> ) -> Self
async fn get_object_bytes(&self, object_id: ObjectId) -> Option<Vec<u8>>
async fn get_move_status(&self, object_id: ObjectId) -> Option<ObjectMoveStatus>
Trait Implementations§
source§impl DataRequest for DataRequestServer
impl DataRequest for DataRequestServer
fn get_move_status<'life0, 'async_trait>( &'life0 self, request: Request<ProtoObjectMoveHandle> ) -> Pin<Box<dyn Future<Output = Result<Response<ProtoObjectMoveHandle>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
fn move_object<'life0, 'async_trait>( &'life0 self, request: Request<MoveProperties> ) -> Pin<Box<dyn Future<Output = Result<Response<ProtoObjectMoveHandle>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
fn trigger_move<'life0, 'async_trait>( &'life0 self, request: Request<TriggerMoveProperties> ) -> Pin<Box<dyn Future<Output = Result<Response<ProtoObjectMoveHandle>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Auto Trait Implementations§
impl !RefUnwindSafe for DataRequestServer
impl Send for DataRequestServer
impl Sync for DataRequestServer
impl Unpin for DataRequestServer
impl !UnwindSafe for DataRequestServer
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