pub(crate) struct BlockSyncServerConfiguration {
pub(crate) chain_id: ChainID,
pub(crate) keypair: Keypair,
pub(crate) request_limit: u32,
pub(crate) advertise_time: Duration,
}
Expand description
Parameters that are used to configure the behaviour of the Block Sync Server. These should not change after the server starts.
Fields§
§chain_id: ChainID
ID of the blockchain for which the server handles sync requests.
keypair: Keypair
Keypair used to sign Advertise Block messages.
request_limit: u32
Maximum number of blocks that this server can provide in a Block Sync Response.
advertise_time: Duration
How often the sync server should broadcast BlockSyncAdvertiseMessage
s.
Auto Trait Implementations§
impl Freeze for BlockSyncServerConfiguration
impl RefUnwindSafe for BlockSyncServerConfiguration
impl Send for BlockSyncServerConfiguration
impl Sync for BlockSyncServerConfiguration
impl Unpin for BlockSyncServerConfiguration
impl UnwindSafe for BlockSyncServerConfiguration
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