pub struct PartialConfig {
pub iroh: Option<PartialIrohConfig>,
pub storage: Option<PartialStorageConfig>,
pub rpc: Option<PartialRpcConfig>,
}Fields§
§iroh: Option<PartialIrohConfig>§storage: Option<PartialStorageConfig>§rpc: Option<PartialRpcConfig>Implementations§
Source§impl PartialConfig
impl PartialConfig
pub fn new() -> PartialConfig
pub fn from_toml(s: &str) -> Result<PartialConfig, Error>
pub fn into_toml(&self) -> Result<String, Error>
pub fn read_or_create<T>(path: T) -> Result<PartialConfig, ConfigError>
pub fn read_from<T>(path: T) -> Result<PartialConfig, ConfigError>
pub fn write_to<T>(&self, path: T) -> Result<(), ConfigError>
pub fn default(app_name: &'static str) -> PartialConfig
Trait Implementations§
Source§impl Clone for PartialConfig
impl Clone for PartialConfig
Source§fn clone(&self) -> PartialConfig
fn clone(&self) -> PartialConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PartialConfig
impl Debug for PartialConfig
Source§impl Default for PartialConfig
impl Default for PartialConfig
Source§fn default() -> PartialConfig
fn default() -> PartialConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PartialConfig
impl<'de> Deserialize<'de> for PartialConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PartialConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PartialConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Emptiable for PartialConfig
impl Emptiable for PartialConfig
Source§impl From<Config> for PartialConfig
impl From<Config> for PartialConfig
Source§fn from(value: Config) -> PartialConfig
fn from(value: Config) -> PartialConfig
Converts to this type from the input type.
Source§impl Mergeable for PartialConfig
impl Mergeable for PartialConfig
fn merge(&mut self, other: PartialConfig)
Source§impl Serialize for PartialConfig
impl Serialize for PartialConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for PartialConfig
impl RefUnwindSafe for PartialConfig
impl Send for PartialConfig
impl Sync for PartialConfig
impl Unpin for PartialConfig
impl UnsafeUnpin for PartialConfig
impl UnwindSafe for PartialConfig
Blanket Implementations§
Source§impl<T, U> AsyncTryInto<T> for Uwhere
T: AsyncTryFrom<U>,
impl<T, U> AsyncTryInto<T> for Uwhere
T: AsyncTryFrom<U>,
type Error = <T as AsyncTryFrom<U>>::Error
async fn async_try_into(self) -> Result<T, <U as AsyncTryInto<T>>::Error>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request