Struct veilid_core::VeilidConfig
source · pub struct VeilidConfig { /* private fields */ }
Expand description
The Veilid Configuration
Veilid is configured
Implementations§
source§impl VeilidConfig
impl VeilidConfig
pub fn new() -> Self
pub fn setup_from_json( &mut self, config: String, update_cb: UpdateCallback ) -> VeilidAPIResult<()>
pub fn setup_from_config( &mut self, config: VeilidConfigInner, update_cb: UpdateCallback ) -> VeilidAPIResult<()>
pub fn setup( &mut self, cb: ConfigCallback, update_cb: UpdateCallback ) -> VeilidAPIResult<()>
pub fn get_veilid_state(&self) -> Box<VeilidStateConfig>
pub fn get(&self) -> RwLockReadGuard<'_, VeilidConfigInner>
pub fn safe_config(&self) -> VeilidConfig
pub fn with_mut<F, R>(&self, f: F) -> VeilidAPIResult<R>
pub fn get_key_json(&self, key: &str, pretty: bool) -> VeilidAPIResult<String>
pub fn set_key_json(&self, key: &str, value: &str) -> VeilidAPIResult<()>
sourcepub async fn init_node_ids(
&self,
crypto: Crypto,
table_store: TableStore
) -> VeilidAPIResult<()>
pub async fn init_node_ids( &self, crypto: Crypto, table_store: TableStore ) -> VeilidAPIResult<()>
Get the node id from config if one is specified Must be done -after- protected store startup
Trait Implementations§
source§impl Clone for VeilidConfig
impl Clone for VeilidConfig
source§fn clone(&self) -> VeilidConfig
fn clone(&self) -> VeilidConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for VeilidConfig
impl Debug for VeilidConfig
Auto Trait Implementations§
impl Freeze for VeilidConfig
impl !RefUnwindSafe for VeilidConfig
impl Send for VeilidConfig
impl Sync for VeilidConfig
impl Unpin for VeilidConfig
impl !UnwindSafe for VeilidConfig
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
source§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.