pub struct RustCratePortConfig {
pub service: Weak<RustCrateService>,
pub service_host: Arc<dyn Host>,
pub service_server_defns: Arc<RwLock<HashMap<String, ServerPort>>>,
pub network_hint: PortNetworkHint,
pub port: String,
pub merge: bool,
}Fields§
§service: Weak<RustCrateService>§service_host: Arc<dyn Host>§service_server_defns: Arc<RwLock<HashMap<String, ServerPort>>>§network_hint: PortNetworkHint§port: String§merge: boolImplementations§
Trait Implementations§
Source§impl Clone for RustCratePortConfig
impl Clone for RustCratePortConfig
Source§impl Debug for RustCratePortConfig
impl Debug for RustCratePortConfig
Source§impl RustCrateServer for RustCratePortConfig
impl RustCrateServer for RustCratePortConfig
fn get_port(&self) -> ServerPort
fn launched_host(&self) -> Arc<dyn LaunchedHost> ⓘ
Source§impl RustCrateSink for RustCratePortConfig
impl RustCrateSink for RustCratePortConfig
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 RustCrateServer>,
wrap_client_port: &dyn Fn(ServerConfig) -> ServerConfig,
) -> Result<ReverseSinkInstantiator>
fn instantiate_reverse( &self, server_host: &Arc<dyn Host>, server_sink: Arc<dyn RustCrateServer>, 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 RustCrateSource for RustCratePortConfig
impl RustCrateSource for RustCratePortConfig
fn source_path(&self) -> SourcePath
fn host(&self) -> Arc<dyn Host> ⓘ
fn server(&self) -> Arc<dyn RustCrateServer> ⓘ
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 RustCrateSink)
Auto Trait Implementations§
impl !RefUnwindSafe for RustCratePortConfig
impl !UnwindSafe for RustCratePortConfig
impl Forget for RustCratePortConfig
impl Freeze for RustCratePortConfigwhere
*const ArcInner<RustCrateService> is !null: Freeze,
*const ArcInner<dyn Host> is !null: Freeze,
PhantomData<ArcInner<dyn Host>>: Freeze,
*const ArcInner<RwLock<HashMap<String, ServerPort>>> is !null: Freeze,
PhantomData<ArcInner<RwLock<HashMap<String, ServerPort>>>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
impl Move for RustCratePortConfig
impl Send for RustCratePortConfig
impl Sync for RustCratePortConfig
impl Unpin for RustCratePortConfig
impl UnsafeUnpin for RustCratePortConfigwhere
*const ArcInner<RustCrateService> is !null: UnsafeUnpin,
*const ArcInner<dyn Host> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn Host>>: UnsafeUnpin,
*const ArcInner<RwLock<HashMap<String, ServerPort>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<RwLock<HashMap<String, ServerPort>>>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
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,
§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> ⓘ
§impl<T> ToSinkBuild for T
impl<T> ToSinkBuild for T
§fn iter_to_sink_build(self) -> SendIterBuild<Self>
fn iter_to_sink_build(self) -> SendIterBuild<Self>
§fn stream_to_sink_build(self) -> SendStreamBuild<Self>where
Self: Sized + Stream,
fn stream_to_sink_build(self) -> SendStreamBuild<Self>where
Self: Sized + Stream,
Starts a [
SinkBuild] adaptor chain to send all items from self as a [Stream].