pub struct InternalOnly { /* private fields */ }Expand description
A complete internal only netidx setup. This will allow the current program to talk to itself (and child processes) over netidx. This is useful for tests, as well as a fallback of last resort when there is no usable netidx config, but a program could still be useful without netidx.
Note, when you drop this the internal resolver server will shut down and your publisher/subscriber will no longer be usable.
Implementations§
Source§impl InternalOnly
impl InternalOnly
pub fn subscriber(&self) -> &Subscriber
pub fn publisher(&self) -> &Publisher
pub async fn new() -> Result<Self>
Auto Trait Implementations§
impl Freeze for InternalOnly
impl !RefUnwindSafe for InternalOnly
impl Send for InternalOnly
impl Sync for InternalOnly
impl Unpin for InternalOnly
impl !UnwindSafe for InternalOnly
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