Struct netemul::TestNetworkSetup
source · 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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoAny for T
impl<T> IntoAny for T
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
type Error = <U as TryFromExt<T>>::Error
§fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
Tries to perform the conversion.