Skip to main content

DestinationIdentityTable

Trait DestinationIdentityTable 

Source
pub trait DestinationIdentityTable {
    // Required methods
    fn capacity(&self) -> usize;
    fn len(&self) -> usize;
    fn destinations(&self) -> &[DestinationHash];
    fn public_keys(&self) -> &[IdentityPublicKeys];
    fn announced_at(&self) -> &[InstantMillis];
    fn retention(&self) -> &[DestinationIdentityRetentionState];
    fn app_data_handles(&self) -> &[AppDataHandle];
    fn set_row(&mut self, index: usize, record: DestinationIdentityRecord);
    fn push(
        &mut self,
        destination: DestinationHash,
        record: DestinationIdentityRecord,
    ) -> Result<usize, TablePushError>;
    fn swap_remove(&mut self, index: usize);

    // Provided methods
    fn is_empty(&self) -> bool { ... }
    fn index_of(&self, destination: &DestinationHash) -> Option<usize> { ... }
}

Required Methods§

Provided Methods§

Source

fn is_empty(&self) -> bool

Source

fn index_of(&self, destination: &DestinationHash) -> Option<usize>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§