pub struct DeployPorts<T = Option<()>> {
pub ports: RefCell<HashMap<String, Connection>>,
pub meta: T,
}
Expand description
Contains runtime information passed by Hydro Deploy to a program, describing how to connect to other services and metadata about them.
Fields§
§ports: RefCell<HashMap<String, Connection>>
§meta: T
Implementations§
Source§impl<T> DeployPorts<T>
impl<T> DeployPorts<T>
pub fn port(&self, name: &str) -> Connection
Auto Trait Implementations§
impl<T = Option<()>> !Freeze for DeployPorts<T>
impl<T = Option<()>> !RefUnwindSafe for DeployPorts<T>
impl<T> Send for DeployPorts<T>where
T: Send,
impl<T = Option<()>> !Sync for DeployPorts<T>
impl<T> Unpin for DeployPorts<T>where
T: Unpin,
impl<T> UnwindSafe for DeployPorts<T>where
T: 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