pub struct DestinationIdentities<Table, AppData> { /* private fields */ }Implementations§
Source§impl<Table, AppData> DestinationIdentities<Table, AppData>where
Table: DestinationIdentityTable,
AppData: AnnounceAppData,
impl<Table, AppData> DestinationIdentities<Table, AppData>where
Table: DestinationIdentityTable,
AppData: AnnounceAppData,
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn contains(&self, destination: &DestinationHash) -> bool
pub fn get( &self, destination: &DestinationHash, ) -> Option<DestinationIdentity<'_>>
pub fn expiry_at(&self, destination: &DestinationHash) -> Option<InstantMillis>
pub fn rows(&self) -> impl Iterator<Item = DestinationIdentity<'_>>
pub fn remember( &mut self, destination: DestinationHash, public_keys: IdentityPublicKeys, app_data: &[u8], announced_at: InstantMillis, ) -> Result<RememberDestinationIdentityOutcome, RememberDestinationIdentityError>
pub fn restore( &mut self, destination: DestinationHash, public_keys: IdentityPublicKeys, app_data: &[u8], announced_at: InstantMillis, retention: DestinationIdentityRetentionState, ) -> Result<RememberDestinationIdentityOutcome, RememberDestinationIdentityError>
pub fn mark_used( &mut self, destination: &DestinationHash, now: InstantMillis, ) -> MarkDestinationUsedOutcome
pub fn retain( &mut self, destination: &DestinationHash, ) -> RetainDestinationOutcome
pub fn release( &mut self, destination: &DestinationHash, now: InstantMillis, ) -> ReleaseDestinationOutcome
pub fn retain_identity( &mut self, identity: &IdentityHash, ) -> RetainIdentityOutcome
pub fn cull_expired( &mut self, now: InstantMillis, has_path: impl FnMut(&DestinationHash) -> bool, ) -> usize
pub fn evict_oldest_unretained_without_path( &mut self, has_path: impl FnMut(&DestinationHash) -> bool, ) -> bool
pub fn soonest_expiry( &self, has_path: impl FnMut(&DestinationHash) -> bool, ) -> Option<InstantMillis>
Trait Implementations§
Auto Trait Implementations§
impl<Table, AppData> Freeze for DestinationIdentities<Table, AppData>
impl<Table, AppData> RefUnwindSafe for DestinationIdentities<Table, AppData>where
Table: RefUnwindSafe,
AppData: RefUnwindSafe,
impl<Table, AppData> Send for DestinationIdentities<Table, AppData>
impl<Table, AppData> Sync for DestinationIdentities<Table, AppData>
impl<Table, AppData> Unpin for DestinationIdentities<Table, AppData>
impl<Table, AppData> UnsafeUnpin for DestinationIdentities<Table, AppData>where
Table: UnsafeUnpin,
AppData: UnsafeUnpin,
impl<Table, AppData> UnwindSafe for DestinationIdentities<Table, AppData>where
Table: UnwindSafe,
AppData: UnwindSafe,
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