pub struct Actor {
pub vehicle: Arc<Vehicle>,
pub driver: Arc<Driver>,
pub detail: ActorDetail,
}
Expand description
Represents an actor: abstraction over vehicle and driver.
Fields§
§vehicle: Arc<Vehicle>
A vehicle associated within actor.
driver: Arc<Driver>
A driver associated within actor.
detail: ActorDetail
Specifies actor detail.
Trait Implementations§
source§impl PartialEq for Actor
impl PartialEq for Actor
impl Eq for Actor
Auto Trait Implementations§
impl !RefUnwindSafe for Actor
impl Send for Actor
impl Sync for Actor
impl Unpin for Actor
impl !UnwindSafe for Actor
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