scion_sdk_address_manager/lib.rs
1// Copyright 2025 Anapaya Systems
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14//! # Address Manager
15//!
16//! Manage a pool of addresses.
17//!
18//! The [manager::AddressManager] allocates addresses and associates allocation
19//! with an user identity. A successful allocation will result in a
20//! [manager::AddressGrant] which has a limited lifetime.
21//!
22//! The state of the address pool (which address to allocate next) is managed by
23//! [allocator::AddressAllocator].
24
25pub mod allocator;
26pub mod dto;
27pub mod manager;