Struct vls_protocol_signer::handler::RootHandlerBuilder
source · pub struct RootHandlerBuilder { /* private fields */ }Expand description
Builder for RootHandler
WARNING: if you don’t specify a seed, and you persist to LSS, you must get the seed from the builder and persist it yourself. LSS does not persist the seed. If you don’t persist, you will lose your keys.
Implementations§
source§impl RootHandlerBuilder
impl RootHandlerBuilder
sourcepub fn new(
network: Network,
id: u64,
services: NodeServices,
seed: [u8; 32]
) -> RootHandlerBuilder
pub fn new( network: Network, id: u64, services: NodeServices, seed: [u8; 32] ) -> RootHandlerBuilder
Create a RootHandlerBuilder
sourcepub fn allowlist(self, allowlist: Vec<String>) -> Self
pub fn allowlist(self, allowlist: Vec<String>) -> Self
Set the initial allowlist (only used if node is new)
sourcepub fn lss_state(
self,
lss_state: Arc<Mutex<BTreeMap<String, (u64, Vec<u8>)>>>
) -> Self
pub fn lss_state( self, lss_state: Arc<Mutex<BTreeMap<String, (u64, Vec<u8>)>>> ) -> Self
Set the LSS state
sourcepub fn build(self) -> (RootHandler, Mutations)
pub fn build(self) -> (RootHandler, Mutations)
Build the root handler.
Returns the handler and any mutations that need to be stored
Auto Trait Implementations§
impl !RefUnwindSafe for RootHandlerBuilder
impl Send for RootHandlerBuilder
impl Sync for RootHandlerBuilder
impl Unpin for RootHandlerBuilder
impl !UnwindSafe for RootHandlerBuilder
Blanket Implementations§
§impl<T> Downcast for Twhere
T: AsAny + ?Sized,
impl<T> Downcast for Twhere T: AsAny + ?Sized,
§fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
fn downcast_ref<T>(&self) -> Option<&T>where T: AsAny,
Forward to the method defined on the type
Any.§fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
fn downcast_mut<T>(&mut self) -> Option<&mut T>where T: AsAny,
Forward to the method defined on the type
Any.