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 an actor.
driver: Arc<Driver>
A driver associated within an actor.
detail: ActorDetail
Specifies actor detail.
Trait Implementations§
impl Eq for Actor
Auto Trait Implementations§
impl Freeze for Actor
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more