Crate praborrow_core

Crate praborrow_core 

Source
Expand description

Core primitives for distributed ownership enforcement.

This crate provides Sovereign<T>, a wrapper type that tracks ownership across network boundaries. When a resource is “annexed” (moved to another node), local access is prohibited.

§Safety

Uses UnsafeCell and AtomicU8 for interior mutability with thread-safety. The Send/Sync implementations are safe when T is Send/Sync.

Structs§

Lease
Represents a lease on a Sovereign resource.
Sovereign
A wrapper that enforces ownership semantics across network boundaries.

Enums§

LeaseError
Error returned when a lease operation fails.
SovereignState
The state of a Sovereign resource. 0: Domestic (Local jurisdiction) 1: Exiled (Foreign jurisdiction - moved to another node)

Traits§

CheckProtocol
Protocol for enforcing constitutional invariants.
DistributedBorrow
Trait for distributed borrow operations.