pub struct NetworkAllowlistCatalog { /* private fields */ }Expand description
Empty-default station network allowlist catalog.
Implementations§
Source§impl NetworkAllowlistCatalog
impl NetworkAllowlistCatalog
pub fn new() -> Self
pub fn is_empty(&self) -> bool
pub fn len(&self) -> usize
pub fn contains(&self, id: &SpawnNetworkAllowlistId) -> bool
pub fn get( &self, id: &SpawnNetworkAllowlistId, ) -> Option<&NetworkAllowlistEntry>
Sourcepub fn ids(&self) -> impl Iterator<Item = &SpawnNetworkAllowlistId>
pub fn ids(&self) -> impl Iterator<Item = &SpawnNetworkAllowlistId>
Opaque ids in sorted order (LaunchInventory surface).
pub fn iter(&self) -> impl Iterator<Item = &NetworkAllowlistEntry>
Sourcepub fn insert(
&mut self,
entry: NetworkAllowlistEntry,
) -> Result<(), NetworkAllowlistCatalogError>
pub fn insert( &mut self, entry: NetworkAllowlistEntry, ) -> Result<(), NetworkAllowlistCatalogError>
Insert or replace. Refuses when at capacity and id is new.
Sourcepub fn insert_id(
&mut self,
id: SpawnNetworkAllowlistId,
) -> Result<(), NetworkAllowlistCatalogError>
pub fn insert_id( &mut self, id: SpawnNetworkAllowlistId, ) -> Result<(), NetworkAllowlistCatalogError>
Convenience: register membership-only id (tests / in-memory config).
Trait Implementations§
Source§impl Clone for NetworkAllowlistCatalog
impl Clone for NetworkAllowlistCatalog
Source§impl Debug for NetworkAllowlistCatalog
impl Debug for NetworkAllowlistCatalog
Source§impl Default for NetworkAllowlistCatalog
impl Default for NetworkAllowlistCatalog
impl Eq for NetworkAllowlistCatalog
Source§impl FromIterator<NetworkAllowlistEntry> for NetworkAllowlistCatalog
impl FromIterator<NetworkAllowlistEntry> for NetworkAllowlistCatalog
Source§fn from_iter<T: IntoIterator<Item = NetworkAllowlistEntry>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = NetworkAllowlistEntry>>(iter: T) -> Self
Creates a value from an iterator. Read more
Source§impl FromIterator<SpawnNetworkAllowlistId> for NetworkAllowlistCatalog
impl FromIterator<SpawnNetworkAllowlistId> for NetworkAllowlistCatalog
Source§fn from_iter<T: IntoIterator<Item = SpawnNetworkAllowlistId>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = SpawnNetworkAllowlistId>>(iter: T) -> Self
Creates a value from an iterator. Read more
Source§impl PartialEq for NetworkAllowlistCatalog
impl PartialEq for NetworkAllowlistCatalog
impl StructuralPartialEq for NetworkAllowlistCatalog
Auto Trait Implementations§
impl Freeze for NetworkAllowlistCatalog
impl RefUnwindSafe for NetworkAllowlistCatalog
impl Send for NetworkAllowlistCatalog
impl Sync for NetworkAllowlistCatalog
impl Unpin for NetworkAllowlistCatalog
impl UnsafeUnpin for NetworkAllowlistCatalog
impl UnwindSafe for NetworkAllowlistCatalog
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