pub struct GXConfigBuilder { /* private fields */ }Expand description
Builder for GXConfig.
Implementations§
Source§impl GXConfigBuilder
impl GXConfigBuilder
Sourcepub fn resolve_timeout(self, value: Duration) -> Self
pub fn resolve_timeout(self, value: Duration) -> Self
The subscribe timeout to use when resolving modules in netidx. Resolution will fail if the subscription does not succeed before this timeout elapses.
Sourcepub fn publish_timeout(self, value: Duration) -> Self
pub fn publish_timeout(self, value: Duration) -> Self
The publish timeout to use when sending published batches. Default None.
Sourcepub fn ctx(self, value: ExecCtx<GXCtx, NoUserEvent>) -> Self
pub fn ctx(self, value: ExecCtx<GXCtx, NoUserEvent>) -> Self
The execution context with any builtins already registered
Sourcepub fn resolvers(self, value: Vec<ModuleResolver>) -> Self
pub fn resolvers(self, value: Vec<ModuleResolver>) -> Self
The set of module resolvers to use when resolving loaded modules
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GXConfigBuilder
impl !RefUnwindSafe for GXConfigBuilder
impl Send for GXConfigBuilder
impl Sync for GXConfigBuilder
impl Unpin for GXConfigBuilder
impl !UnwindSafe for GXConfigBuilder
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