NodeAddressBookQuery

Type Alias NodeAddressBookQuery 

Source
pub type NodeAddressBookQuery = MirrorQuery<NodeAddressBookQueryData>;
Expand description

Query for an address book and return its nodes. The nodes are returned in ascending order by node ID.

Aliased Type§

pub struct NodeAddressBookQuery { /* private fields */ }

Implementations§

Source§

impl NodeAddressBookQuery

Source

pub fn get_file_id(&self) -> FileId

Returns the file ID of the address book file on the network.

Source

pub fn file_id(&mut self, id: impl Into<FileId>) -> &mut Self

Sets the ID of the address book file on the network. Can either be 0.0.101 or 0.0.102. Defaults to 0.0.102.

Source

pub fn get_limit(&self) -> u32

Returns the configured limit of node addresses to receive.

Source

pub fn limit(&mut self, limit: u32) -> &mut Self

Sets the maximum number of node addresses to receive. Defaults to all.

Source

pub fn shard(&mut self, shard: u64) -> &mut Self

Sets the shard of the address book file on the network.

Source

pub fn realm(&mut self, realm: u64) -> &mut Self

Sets the realm of the address book file on the network.