pub struct Context<'a> {
pub public_ip: Option<IpAddr>,
pub entrypoint: &'a EntrypointFn,
pub free_port: &'a (dyn Fn() -> Option<u16> + Send + Sync),
}Expand description
What the host contributes.
Fields§
§public_ip: Option<IpAddr>For generated (host: auto) names.
entrypoint: &'a EntrypointFn§free_port: &'a (dyn Fn() -> Option<u16> + Send + Sync)Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Context<'a>
impl<'a> !UnwindSafe for Context<'a>
impl<'a> Freeze for Context<'a>
impl<'a> Send for Context<'a>
impl<'a> Sync for Context<'a>
impl<'a> Unpin for Context<'a>
impl<'a> UnsafeUnpin for Context<'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