pub struct PerceptionLock {
pub perception_id: PerceptionId,
pub locked_by: Uuid,
pub locked_at: DateTime<Utc>,
pub expires_at: DateTime<Utc>,
pub lock_type: PerceptionLockType,
}Expand description
A lock on a perception to coordinate access
Fields§
§perception_id: PerceptionId§locked_by: Uuid§locked_at: DateTime<Utc>§expires_at: DateTime<Utc>§lock_type: PerceptionLockTypeTrait Implementations§
Source§impl Clone for PerceptionLock
impl Clone for PerceptionLock
Source§fn clone(&self) -> PerceptionLock
fn clone(&self) -> PerceptionLock
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PerceptionLock
impl RefUnwindSafe for PerceptionLock
impl Send for PerceptionLock
impl Sync for PerceptionLock
impl Unpin for PerceptionLock
impl UnsafeUnpin for PerceptionLock
impl UnwindSafe for PerceptionLock
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