pub struct Net { /* private fields */ }Implementations§
Source§impl Net
impl Net
pub fn open(dir: &Path, cfg: NetConfig) -> Result<Self>
pub fn pod_ip(&self, key: &str) -> Option<Ipv4Addr>
pub fn dns(&self) -> Option<Ipv4Addr>
pub fn may_reach(&self, ip: Ipv4Addr) -> bool
pub fn clean(&self) -> Result<()>
pub fn start( &self, live: &BTreeSet<String>, running: &BTreeSet<String>, ) -> Result<()>
pub fn shutdown(&self)
pub fn attach(&self, key: &str, id: &str, ports: &[PortSpec]) -> Result<Attach>
pub fn resume(&self, id: &str) -> Result<()>
pub fn suspend(&self, id: &str) -> Result<()>
pub fn release(&self, id: &str) -> Result<()>
Auto Trait Implementations§
impl !Freeze for Net
impl Forget for Net
impl Move for Net
impl RefUnwindSafe for Netwhere
Mutex<State>: RefUnwindSafe,
Mutex<()>: RefUnwindSafe,
Mutex<BTreeMap<String, Vec<Hold>>>: RefUnwindSafe,
Mutex<Vec<Subnet>>: RefUnwindSafe,
I32NotAllOnes: RefUnwindSafe,
impl Send for Net
impl Sync for Net
impl Unpin for Netwhere
*const u8 is !null: Unpin,
Align4<u32>: Unpin,
Align1<u8>: Unpin,
*const LeafNode<String, PodNet> is !null: Unpin,
Box<(String, PodNet)>: Unpin,
*const LeafNode<String, Vec<HostPort>> is !null: Unpin,
Box<(String, Vec<HostPort>)>: Unpin,
*const LeafNode<String, Vec<Hold>> is !null: Unpin,
Box<(String, Vec<Hold>)>: Unpin,
I32NotAllOnes: Unpin,
impl UnsafeUnpin for Netwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Subnet>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<u16>: UnsafeUnpin,
Align4<u32>: UnsafeUnpin,
Align1<u8>: UnsafeUnpin,
*const LeafNode<String, PodNet> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, PodNet)>>: UnsafeUnpin,
*const LeafNode<String, Vec<HostPort>> is !null: UnsafeUnpin,
PhantomData<Box<(String, Vec<HostPort>)>>: UnsafeUnpin,
*const LeafNode<String, Vec<Hold>> is !null: UnsafeUnpin,
PhantomData<Box<(String, Vec<Hold>)>>: UnsafeUnpin,
I32NotAllOnes: UnsafeUnpin,
impl UnwindSafe for Netwhere
RawVecInner: UnwindSafe,
Mutex<State>: UnwindSafe,
Mutex<()>: UnwindSafe,
Mutex<BTreeMap<String, Vec<Hold>>>: UnwindSafe,
Mutex<Vec<Subnet>>: UnwindSafe,
I32NotAllOnes: 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