pub struct DataRequestClient {
server_port: u16,
host_clients: Mutex<HashMap<HostId, DataRequestClient<Channel>>>,
}Fields§
§server_port: u16§host_clients: Mutex<HashMap<HostId, DataRequestClient<Channel>>>Implementations§
source§impl DataRequestClient
impl DataRequestClient
pub fn new(server_port: u16) -> Self
async fn get_client( &self, host_id: &HostId ) -> Result<DataRequestClient<Channel>, InternalError>
sourcepub async fn move_object(
&self,
object_id: ObjectId,
source_host_id: HostId,
target_host_id: HostId,
signature: &[u8]
) -> Result<ObjectMoveHandle, MoveError>
pub async fn move_object( &self, object_id: ObjectId, source_host_id: HostId, target_host_id: HostId, signature: &[u8] ) -> Result<ObjectMoveHandle, MoveError>
Initiates the movement of the object identified by object_id by submitting a request to
the host behind source_host_id (the current owner of the object), instructing them to
submit the delta of the target object (computed through the signature argument) to the
host identified by target_host_id.
sourcepub async fn initiate_move(
&self,
object_id: ObjectId,
source_host_id: HostId,
target_host_id: HostId
) -> Result<ObjectMoveHandle, MoveError>
pub async fn initiate_move( &self, object_id: ObjectId, source_host_id: HostId, target_host_id: HostId ) -> Result<ObjectMoveHandle, MoveError>
Signals the new owner of an object (identified by target_host_id) to trigger an
object move from the object’s current owner (identified by source_host_id).
Auto Trait Implementations§
impl !RefUnwindSafe for DataRequestClient
impl Send for DataRequestClient
impl Sync for DataRequestClient
impl Unpin for DataRequestClient
impl !UnwindSafe for DataRequestClient
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