pub struct ObjectMoveHandle {
pub object_id: ObjectId,
pub move_status: Arc<RwLock<ObjectMoveStatus>>,
move_done: Arc<Mutex<bool>>,
move_done_cv: Arc<Condvar>,
}Fields§
§object_id: ObjectId§move_status: Arc<RwLock<ObjectMoveStatus>>§move_done: Arc<Mutex<bool>>§move_done_cv: Arc<Condvar>Implementations§
source§impl ObjectMoveHandle
impl ObjectMoveHandle
pub fn new(object_id: ObjectId, status: Option<ObjectMoveStatus>) -> Self
pub async fn set_status_in_progress(&self)
pub async fn mark_move_done(&self)
pub async fn mark_move_denied(&self)
pub async fn wait_until_done(&self)
Trait Implementations§
source§impl Clone for ObjectMoveHandle
impl Clone for ObjectMoveHandle
source§fn clone(&self) -> ObjectMoveHandle
fn clone(&self) -> ObjectMoveHandle
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl From<ObjectMoveHandle> for ObjectMoveHandle
impl From<ObjectMoveHandle> for ObjectMoveHandle
source§fn from(src: ObjectMoveHandle) -> Self
fn from(src: ObjectMoveHandle) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ObjectMoveHandle
impl Send for ObjectMoveHandle
impl Sync for ObjectMoveHandle
impl Unpin for ObjectMoveHandle
impl !UnwindSafe for ObjectMoveHandle
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