pub struct EmbeddedNode {
pub fn_name: String,
pub location_key: LocationKey,
}Available on crate feature
build only.Expand description
A trivial node type for embedded deployment. Stores a user-provided function name.
Fields§
§fn_name: StringThe function name to use in the generated code for this location.
location_key: LocationKeyThe location key for this node, used to register network ports.
Trait Implementations§
Source§impl Clone for EmbeddedNode
impl Clone for EmbeddedNode
Source§fn clone(&self) -> EmbeddedNode
fn clone(&self) -> EmbeddedNode
Returns a duplicate 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 Node for EmbeddedNode
impl Node for EmbeddedNode
type Meta = ()
type InstantiateEnv = EmbeddedInstantiateEnv
fn update_meta(&self, _meta: &Self::Meta)
fn instantiate( &self, _env: &mut Self::InstantiateEnv, _meta: &mut Self::Meta, _graph: DfirGraph, _extra_stmts: &[Stmt], _sidecars: &[Expr], )
Source§impl<'a> RegisterPort<'a, EmbeddedDeploy> for EmbeddedNode
impl<'a> RegisterPort<'a, EmbeddedDeploy> for EmbeddedNode
fn register(&self, _external_port_id: ExternalPortId, _port: Self::Port)
fn as_bytes_bidi( &self, _external_port_id: ExternalPortId, ) -> impl Future<Output = DynSourceSink<Result<BytesMut, Error>, Bytes, Error>> + 'a
fn as_bincode_bidi<InT, OutT>(
&self,
_external_port_id: ExternalPortId,
) -> impl Future<Output = DynSourceSink<OutT, InT, Error>> + 'awhere
InT: Serialize + 'static,
OutT: DeserializeOwned + 'static,
fn as_bincode_sink<T>(
&self,
_external_port_id: ExternalPortId,
) -> impl Future<Output = Pin<Box<dyn Sink<T, Error = Error>>>> + 'awhere
T: Serialize + 'static,
fn as_bincode_source<T>(
&self,
_external_port_id: ExternalPortId,
) -> impl Future<Output = Pin<Box<dyn Stream<Item = T>>>> + 'awhere
T: DeserializeOwned + 'static,
Auto Trait Implementations§
impl Freeze for EmbeddedNode
impl RefUnwindSafe for EmbeddedNode
impl Send for EmbeddedNode
impl Sync for EmbeddedNode
impl Unpin for EmbeddedNode
impl UnsafeUnpin for EmbeddedNode
impl UnwindSafe for EmbeddedNode
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> ⓘ
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 moreCreates a shared type from an unshared type.