pub struct NatsTestServerBuilder<A> { /* private fields */ }
Implementations§
Source§impl<A: ToSocketAddrs + Display + Send + 'static> NatsTestServerBuilder<A>
impl<A: ToSocketAddrs + Display + Send + 'static> NatsTestServerBuilder<A>
Sourcepub fn address<B>(self, baddr: B) -> NatsTestServerBuilder<B>
pub fn address<B>(self, baddr: B) -> NatsTestServerBuilder<B>
Address for server to listen for NATS connections
Sourcepub fn spawn(self) -> NatsTestServer
pub fn spawn(self) -> NatsTestServer
Spawn the server on a thread, returns controller struct which will stop the server on drop
Auto Trait Implementations§
impl<A> Freeze for NatsTestServerBuilder<A>where
A: Freeze,
impl<A> RefUnwindSafe for NatsTestServerBuilder<A>where
A: RefUnwindSafe,
impl<A> Send for NatsTestServerBuilder<A>where
A: Send,
impl<A> Sync for NatsTestServerBuilder<A>where
A: Sync,
impl<A> Unpin for NatsTestServerBuilder<A>where
A: Unpin,
impl<A> UnwindSafe for NatsTestServerBuilder<A>where
A: UnwindSafe,
Blanket Implementations§
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