Struct btfsd::BtfsdConfig
source · pub(crate) struct BtfsdConfig {
pub(crate) cred_store: CredStoreConfig,
pub(crate) ip_addr: IpAddr,
pub(crate) block_dir: PathBuf,
pub(crate) console: Option<BtConsoleConfig>,
}
Fields§
§cred_store: CredStoreConfig
§ip_addr: IpAddr
The IP address to listen for filesystem connection on.
block_dir: PathBuf
The path in the local filesystem where blocks are stored.
console: Option<BtConsoleConfig>
Configuration for the btconsole webapp.
Implementations§
source§impl BtfsdConfig
impl BtfsdConfig
pub(crate) fn new() -> Result<BtfsdConfig>
Trait Implementations§
source§impl Clone for BtfsdConfig
impl Clone for BtfsdConfig
source§fn clone(&self) -> BtfsdConfig
fn clone(&self) -> BtfsdConfig
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 BtfsdConfig
impl Debug for BtfsdConfig
source§impl Default for BtfsdConfig
impl Default for BtfsdConfig
source§impl<'de> Deserialize<'de> for BtfsdConfig
impl<'de> Deserialize<'de> for BtfsdConfig
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for BtfsdConfig
impl Send for BtfsdConfig
impl Sync for BtfsdConfig
impl Unpin for BtfsdConfig
impl UnwindSafe for BtfsdConfig
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
§impl<T> Free for T
impl<T> Free for T
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>
§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self
to a value of a Properties
struct.§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self
to a value of a Properties
struct.