pub struct TestNetworkSetup<'a> { /* private fields */ }
Expand description
A set of virtual networks and endpoints.
Created through TestSandbox::setup_networks
.
Implementations§
Source§impl TestNetworkSetup<'_>
impl TestNetworkSetup<'_>
Sourcepub fn into_proxy(self) -> SetupHandleProxy
pub fn into_proxy(self) -> SetupHandleProxy
Extracts the proxy to the backing setup handle.
Note that this defeats the lifetime semantics that ensure the sandbox in
which these networks were created lives as long as the networks. The caller
of TestNetworkSetup::into_proxy
is responsible for ensuring that the
sandbox outlives the networks.
Auto Trait Implementations§
impl<'a> Freeze for TestNetworkSetup<'a>
impl<'a> !RefUnwindSafe for TestNetworkSetup<'a>
impl<'a> Send for TestNetworkSetup<'a>
impl<'a> Sync for TestNetworkSetup<'a>
impl<'a> Unpin for TestNetworkSetup<'a>
impl<'a> !UnwindSafe for TestNetworkSetup<'a>
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
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> IntoAny for T
impl<T> IntoAny for T
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