pub struct TopologyConfig {
pub host: Option<HostConfig>,
pub parent: Option<ParentLink>,
}Fields§
§host: Option<HostConfig>§parent: Option<ParentLink>Implementations§
Source§impl TopologyConfig
impl TopologyConfig
pub fn new() -> TopologyConfig
pub fn host(host: HostConfig) -> TopologyConfig
pub fn parent(parent: ParentLink) -> TopologyConfig
pub fn with_parent(self, parent: ParentLink) -> TopologyConfig
pub fn validate(&self) -> Result<(), WsError>
Trait Implementations§
Source§impl Default for TopologyConfig
impl Default for TopologyConfig
Source§fn default() -> TopologyConfig
fn default() -> TopologyConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for TopologyConfig
impl !RefUnwindSafe for TopologyConfig
impl !UnwindSafe for TopologyConfig
impl Send for TopologyConfig
impl Sync for TopologyConfig
impl Unpin for TopologyConfig
impl UnsafeUnpin for TopologyConfig
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