Struct hydro_deploy::hydroflow_crate::ports::NullSourceSink
source · pub struct NullSourceSink;
Trait Implementations§
source§impl HydroflowSink for NullSourceSink
impl HydroflowSink for NullSourceSink
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 NullSourceSink
impl HydroflowSource for NullSourceSink
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 NullSourceSink
impl RefUnwindSafe for NullSourceSink
impl Send for NullSourceSink
impl Sync for NullSourceSink
impl Unpin for NullSourceSink
impl UnwindSafe for NullSourceSink
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> 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