Struct hydro_lang::builder::deploy::DeployResult
source · pub struct DeployResult<'a, D: Deploy<'a>> { /* private fields */ }
Implementations§
source§impl<'a, D: Deploy<'a>> DeployResult<'a, D>
impl<'a, D: Deploy<'a>> DeployResult<'a, D>
pub fn get_process<P>(&self, p: &Process<'_, P>) -> &D::Process
pub fn get_cluster<C>(&self, c: &Cluster<'a, C>) -> &D::Cluster
pub fn get_external<P>(&self, p: &ExternalProcess<'_, P>) -> &D::ExternalProcess
pub fn raw_port(&self, port: ExternalBytesPort) -> D::ExternalRawPort
pub async fn connect_sink_bytes( &self, port: ExternalBytesPort, ) -> Pin<Box<dyn Sink<Bytes, Error = Error>>>
pub async fn connect_sink_bincode<T: Serialize + DeserializeOwned + 'static>( &self, port: ExternalBincodeSink<T>, ) -> Pin<Box<dyn Sink<T, Error = Error>>>
pub async fn connect_source_bytes( &self, port: ExternalBytesPort, ) -> Pin<Box<dyn Stream<Item = Bytes>>>
pub async fn connect_source_bincode<T: Serialize + DeserializeOwned + 'static>( &self, port: ExternalBincodeStream<T>, ) -> Pin<Box<dyn Stream<Item = T>>>
Auto Trait Implementations§
impl<'a, D> Freeze for DeployResult<'a, D>
impl<'a, D> RefUnwindSafe for DeployResult<'a, D>where
<D as Deploy<'a>>::Process: RefUnwindSafe,
<D as Deploy<'a>>::Cluster: RefUnwindSafe,
<D as Deploy<'a>>::ExternalProcess: RefUnwindSafe,
impl<'a, D> Send for DeployResult<'a, D>
impl<'a, D> Sync for DeployResult<'a, D>
impl<'a, D> Unpin for DeployResult<'a, D>
impl<'a, D> UnwindSafe for DeployResult<'a, D>where
<D as Deploy<'a>>::Process: UnwindSafe,
<D as Deploy<'a>>::Cluster: UnwindSafe,
<D as Deploy<'a>>::ExternalProcess: 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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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