//! Principals and actors.
//!
//! An actor is whoever performs an Engine operation. The Engine only knows
//! actor *references*; the OS owns the actual user/group database, credentials,
//! and authentication.
use crateId;
/// Marker type distinguishing [`ActorId`] from
/// other [`Id`] types.
;
/// The identity of an actor (a principal) that performs Engine operations.
///
/// The Engine treats actor IDs as opaque references. The OS decides what an
/// actor is (a user, a group, a service) and maps them onto its own model.
///
/// The OS layers have a load-bearing convention on top: on Unix the actor
/// id *is* the effective user id (`uid == actor id`, so ownership resolves
/// without a database lookup), and on Windows it is the account's RID. The
/// convention lives in the OS layer; the Engine itself never assumes it.
pub type ActorId = ;