pub struct ShellBuilder<X: GXExt> { /* private fields */ }Expand description
Builder for Shell.
Implementations§
Source§impl<X: GXExt> ShellBuilder<X>
impl<X: GXExt> ShellBuilder<X>
Sourcepub fn publish_timeout(self, value: Duration) -> Self
pub fn publish_timeout(self, value: Duration) -> Self
drop subscribers if they don’t consume updates after this timeout
Sourcepub fn resolve_timeout(self, value: Duration) -> Self
pub fn resolve_timeout(self, value: Duration) -> Self
module resolution from netidx will fail if it can’t subscribe before this time elapses
Sourcepub fn module_resolvers(self, value: Vec<ModuleResolver>) -> Self
pub fn module_resolvers(self, value: Vec<ModuleResolver>) -> Self
define module resolvers to append to the default list
Sourcepub fn publisher(self, value: Publisher) -> Self
pub fn publisher(self, value: Publisher) -> Self
The netidx publisher to use. If you do not wish to use netidx you can use netidx::InternalOnly to create an internal netidx environment
Sourcepub fn subscriber(self, value: Subscriber) -> Self
pub fn subscriber(self, value: Subscriber) -> Self
The netidx subscriber to use. If you do not wish to use netidx you can use netidx::InternalOnly to create an internal netidx environment
Sourcepub fn enable_flags(self, value: BitFlags<CFlag>) -> Self
pub fn enable_flags(self, value: BitFlags<CFlag>) -> Self
Enable compiler flags, these will be ORed with the default set of flags for the mode.
Sourcepub fn disable_flags(self, value: BitFlags<CFlag>) -> Self
pub fn disable_flags(self, value: BitFlags<CFlag>) -> Self
Disable compiler flags, these will be subtracted from the final set. (default_flags | enable_flags) - disable_flags
Trait Implementations§
Auto Trait Implementations§
impl<X> Freeze for ShellBuilder<X>
impl<X> !RefUnwindSafe for ShellBuilder<X>
impl<X> Send for ShellBuilder<X>
impl<X> Sync for ShellBuilder<X>
impl<X> Unpin for ShellBuilder<X>where
X: Unpin,
impl<X> UnsafeUnpin for ShellBuilder<X>
impl<X> !UnwindSafe for ShellBuilder<X>
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> 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>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<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>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> 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)
Convert
&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)
Convert
&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> 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