Struct tor_rtmock::net::ProviderBuilder [−][src]
pub struct ProviderBuilder { /* fields omitted */ }
Expand description
A builder object used to configure a MockNetProvider
Returned by MockNetwork::builder()
.
Implementations
Add addr
as a new address for the provider we’re building.
Use this builder to return a new MockNetRuntime
wrapping
an existing runtime
.
Use this builder to return a new MockNetProvider
Auto Trait Implementations
impl RefUnwindSafe for ProviderBuilder
impl Send for ProviderBuilder
impl Sync for ProviderBuilder
impl Unpin for ProviderBuilder
impl UnwindSafe for ProviderBuilder
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more