Struct hydro_deploy::hydroflow_crate::ports::HydroflowPortConfig
source · pub struct HydroflowPortConfig {
pub service: Weak<RwLock<HydroflowCrateService>>,
pub service_host: Arc<dyn Host>,
pub service_server_defns: Arc<RwLock<HashMap<String, ServerPort>>>,
pub port: String,
pub merge: bool,
}
Fields§
§service: Weak<RwLock<HydroflowCrateService>>
§service_host: Arc<dyn Host>
§service_server_defns: Arc<RwLock<HashMap<String, ServerPort>>>
§port: String
§merge: bool
Implementations§
Trait Implementations§
source§impl Clone for HydroflowPortConfig
impl Clone for HydroflowPortConfig
source§fn clone(&self) -> HydroflowPortConfig
fn clone(&self) -> HydroflowPortConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl HydroflowServer for HydroflowPortConfig
impl HydroflowServer for HydroflowPortConfig
fn get_port(&self) -> ServerPort
fn launched_host(&self) -> Arc<dyn LaunchedHost>
source§impl HydroflowSink for HydroflowPortConfig
impl HydroflowSink for HydroflowPortConfig
fn as_any(&self) -> &dyn Any
source§fn instantiate(
&self,
client_path: &SourcePath,
) -> Result<Box<dyn FnOnce() -> ServerConfig>>
fn instantiate( &self, client_path: &SourcePath, ) -> Result<Box<dyn FnOnce() -> ServerConfig>>
Instantiate the sink as the source host connecting to the sink host.
Returns a thunk that can be called to perform mutations that instantiate the sink.
source§fn instantiate_reverse(
&self,
server_host: &Arc<dyn Host>,
server_sink: Arc<dyn HydroflowServer>,
wrap_client_port: &dyn Fn(ServerConfig) -> ServerConfig,
) -> Result<ReverseSinkInstantiator>
fn instantiate_reverse( &self, server_host: &Arc<dyn Host>, server_sink: Arc<dyn HydroflowServer>, wrap_client_port: &dyn Fn(ServerConfig) -> ServerConfig, ) -> Result<ReverseSinkInstantiator>
Instantiate the sink, but as the sink host connecting to the source host.
Returns a thunk that can be called to perform mutations that instantiate the sink, taking a mutable reference to this sink.
source§impl HydroflowSource for HydroflowPortConfig
impl HydroflowSource for HydroflowPortConfig
fn source_path(&self) -> SourcePath
fn host(&self) -> Arc<dyn Host>
fn server(&self) -> Arc<dyn HydroflowServer>
fn record_server_config(&self, config: ServerConfig)
fn record_server_strategy(&self, config: ServerStrategy)
fn wrap_reverse_server_config(&self, config: ServerConfig) -> ServerConfig
fn send_to(&self, sink: &dyn HydroflowSink)
Auto Trait Implementations§
impl Freeze for HydroflowPortConfig
impl !RefUnwindSafe for HydroflowPortConfig
impl Send for HydroflowPortConfig
impl Sync for HydroflowPortConfig
impl Unpin for HydroflowPortConfig
impl !UnwindSafe for HydroflowPortConfig
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§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>
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