pub struct FallbackDirBuilder { /* private fields */ }Expand description
A builder to create an instance of FallbackDir.
Implementations§
Source§impl FallbackDirBuilder
impl FallbackDirBuilder
Sourcepub fn rsa_identity(&mut self, val: RsaIdentity) -> &mut Self
pub fn rsa_identity(&mut self, val: RsaIdentity) -> &mut Self
Sourcepub fn ed_identity(&mut self, val: Ed25519Identity) -> &mut Self
pub fn ed_identity(&mut self, val: Ed25519Identity) -> &mut Self
Source§impl FallbackDirBuilder
impl FallbackDirBuilder
Sourcepub fn build(&self) -> Result<FallbackDir, ConfigBuildError>
pub fn build(&self) -> Result<FallbackDir, ConfigBuildError>
Try to construct a new FallbackDir from the fields set in this builder.
Return an error if any required field is missing, or is set to something invalid.
Source§impl FallbackDirBuilder
impl FallbackDirBuilder
Sourcepub fn orports(&mut self) -> &mut Vec<SocketAddr>
pub fn orports(&mut self) -> &mut Vec<SocketAddr>
Access the being-built list (resolving default)
If the field has not yet been set or accessed, the default list will be constructed and a mutable reference to the now-defaulted list of builders will be returned.
Sourcepub fn set_orports(&mut self, list: Vec<SocketAddr>)
pub fn set_orports(&mut self, list: Vec<SocketAddr>)
Set the whole list (overriding the default)
Sourcepub fn opt_orports(&self) -> &Option<Vec<SocketAddr>>
pub fn opt_orports(&self) -> &Option<Vec<SocketAddr>>
Inspect the being-built list (with default unresolved)
If the list has not yet been set, or accessed, &None is returned.
Sourcepub fn opt_orports_mut(&mut self) -> &mut Option<Vec<SocketAddr>>
pub fn opt_orports_mut(&mut self) -> &mut Option<Vec<SocketAddr>>
Mutably access the being-built list (with default unresolved)
If the list has not yet been set, or accessed, &mut None is returned.
Trait Implementations§
Source§impl Builder for FallbackDirBuilder
impl Builder for FallbackDirBuilder
Source§type Built = FallbackDir
type Built = FallbackDir
The type that this builder constructs. Read more
Source§fn build(&self) -> Result<FallbackDir, ConfigBuildError>
fn build(&self) -> Result<FallbackDir, ConfigBuildError>
Build into a
Built Read moreSource§impl Clone for FallbackDirBuilder
impl Clone for FallbackDirBuilder
Source§fn clone(&self) -> FallbackDirBuilder
fn clone(&self) -> FallbackDirBuilder
Returns a duplicate 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 FallbackDirBuilder
impl Debug for FallbackDirBuilder
Source§impl Default for FallbackDirBuilder
impl Default for FallbackDirBuilder
Source§fn default() -> FallbackDirBuilder
fn default() -> FallbackDirBuilder
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FallbackDirBuilder
impl<'de> Deserialize<'de> for FallbackDirBuilder
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
Source§impl ExtendBuilder for FallbackDirBuilder
impl ExtendBuilder for FallbackDirBuilder
Source§fn extend_from(&mut self, other: Self, strategy: ExtendStrategy)
fn extend_from(&mut self, other: Self, strategy: ExtendStrategy)
Source§impl Flattenable for FallbackDirBuilder
impl Flattenable for FallbackDirBuilder
Auto Trait Implementations§
impl Freeze for FallbackDirBuilder
impl RefUnwindSafe for FallbackDirBuilder
impl Send for FallbackDirBuilder
impl Sync for FallbackDirBuilder
impl Unpin for FallbackDirBuilder
impl UnsafeUnpin for FallbackDirBuilder
impl UnwindSafe for FallbackDirBuilder
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync 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>
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 more