pub struct StarterProducerWithFlow { /* private fields */ }
Expand description
Builder for silx network starter, including clusters definitions with: servants names and builder files; data channels names, types and builder files
Implementations§
Source§impl StarterProducerWithFlow
impl StarterProducerWithFlow
Sourcepub fn add_query<P, I, O>(
self,
path: P,
name: String,
cluster: SocketAddr,
in_names: I,
out_names: O,
max_ping: Duration,
size: Option<usize>,
) -> Result<Self, String>
pub fn add_query<P, I, O>( self, path: P, name: String, cluster: SocketAddr, in_names: I, out_names: O, max_ping: Duration, size: Option<usize>, ) -> Result<Self, String>
Add a new intracluster query channel to starters builder
path: P
: path of the file where channel is serializedname: String
: name of the channelcluster: SocketAddr
: socket address of the cluster in which the channel operatesin_names: I
: collection of querying servants of the clusterout_names: O
: collection of replying servants of the clustermax_ping: Duration
: max ping duration for the channelsize: Option<usize>
: size of the channel (None
for unlimited)P
: type of pathI
: type of the collection of querying servantsO
: type of the collection of replying servants- Output: completed starter builder or error
Sourcepub fn add_broadcast<P, I, O>(
self,
path: P,
name: String,
cluster: SocketAddr,
in_names: I,
out_names: O,
max_ping: Duration,
size: usize,
) -> Result<Self, String>
pub fn add_broadcast<P, I, O>( self, path: P, name: String, cluster: SocketAddr, in_names: I, out_names: O, max_ping: Duration, size: usize, ) -> Result<Self, String>
Add a new intracluster broadcast channel to starters builder
path: P
: path of the file where channel is serializedname: String
: name of the channelcluster: SocketAddr
: socket address of the cluster in which the channel operatesin_names: I
: collection of querying servants of the clusterout_names: O
: collection of replying servants of the clustermax_ping: Duration
: max ping duration for the channelsize: usize
: size of the channelP
: type of pathI
: type of the collection of querying servantsO
: type of the collection of replying servants- Output: completed starter builder or error
Sourcepub fn add_signal<P, I, O>(
self,
path: P,
name: String,
cluster: SocketAddr,
in_names: I,
out_names: O,
max_ping: Duration,
) -> Result<Self, String>
pub fn add_signal<P, I, O>( self, path: P, name: String, cluster: SocketAddr, in_names: I, out_names: O, max_ping: Duration, ) -> Result<Self, String>
Add a new signal channel (intracluster) to starters builder
path: P
: path of the file where channel is serializedname: String
: name of the channelcluster: SocketAddr
: socket address of the cluster in which the channel operatesin_names: I
: collection of querying servants of the clusterout_names: O
: collection of replying servants of the clustermax_ping: Duration
: max ping duration for the channelP
: type of pathI
: type of the collection of querying servantsO
: type of the collection of replying servants- Output: completed starter builder or error
Sourcepub fn add_net_query<P, I, O>(
self,
path: P,
name: String,
in_cluster: SocketAddr,
in_names: I,
out_cluster: SocketAddr,
out_names: O,
max_ping: Duration,
size: Option<usize>,
) -> Result<Self, String>
pub fn add_net_query<P, I, O>( self, path: P, name: String, in_cluster: SocketAddr, in_names: I, out_cluster: SocketAddr, out_names: O, max_ping: Duration, size: Option<usize>, ) -> Result<Self, String>
Add a new intercluster query channel to starters builder
path: P
: path of the file where channel is serializedname: String
: name of the channelin_cluster: SocketAddr
: socket address of the cluster from which the channel operatesin_names: I
: collection of querying servants of the input clusterout_cluster: SocketAddr
: socket address of the cluster to which the channel operatesout_names: O
: collection of replying servants of the output clustermax_ping: Duration
: max ping duration for the channelsize: Option<usize>
: size of the channel (None
for unlimited)P
: type of pathI
: type of the collection of querying servantsO
: type of the collection of replying servants- Output: completed starter builder or error
Sourcepub fn add_net_broadcast<P, I, O>(
self,
path: P,
name: String,
in_cluster: SocketAddr,
in_names: I,
out_cluster: SocketAddr,
out_names: O,
max_ping: Duration,
size: usize,
) -> Result<Self, String>
pub fn add_net_broadcast<P, I, O>( self, path: P, name: String, in_cluster: SocketAddr, in_names: I, out_cluster: SocketAddr, out_names: O, max_ping: Duration, size: usize, ) -> Result<Self, String>
Add a new intercluster broadcast channel to starters builder
path: P
: path of the file where channel is serializedname: String
: name of the channelin_cluster: SocketAddr
: socket address of the cluster from which the channel operatesin_names: I
: collection of querying servants of the input clusterout_cluster: SocketAddr
: socket address of the cluster to which the channel operatesout_names: O
: collection of replying servants of the output clustermax_ping: Duration
: max ping duration for the channelsize: usize
: size of the channelP
: type of pathI
: type of the collection of querying servantsO
: type of the collection of replying servants- Output: completed starter builder or error
Sourcepub fn done(self) -> HashMap<SocketAddr, RecFiled<FiledStarter>>
pub fn done(self) -> HashMap<SocketAddr, RecFiled<FiledStarter>>
Finalize the starters builder and get the list of starters definitions
- Output: a collection which maps from cluster socket address to starter definition
Sourcepub fn done_right(
self,
) -> Result<HashMap<SocketAddr, RecFiled<FiledStarter>>, String>
pub fn done_right( self, ) -> Result<HashMap<SocketAddr, RecFiled<FiledStarter>>, String>
Finalize the starters builder and get the list of starters definitions
- Some coherence tests are done
- Output: a collection which maps from cluster socket address to starter definition
Auto Trait Implementations§
impl Freeze for StarterProducerWithFlow
impl !RefUnwindSafe for StarterProducerWithFlow
impl Send for StarterProducerWithFlow
impl !Sync for StarterProducerWithFlow
impl Unpin for StarterProducerWithFlow
impl !UnwindSafe for StarterProducerWithFlow
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> HashedTypeMethods for T
impl<T> HashedTypeMethods for T
Source§fn type_hash_native<REF>() -> u128where
Self: HashedTypeDef<REF>,
fn type_hash_native<REF>() -> u128where
Self: HashedTypeDef<REF>,
return native type hash
Source§fn type_hash_le<REF>() -> u128where
Self: HashedTypeDef<REF>,
fn type_hash_le<REF>() -> u128where
Self: HashedTypeDef<REF>,
return little endianess type hash
Source§fn type_hash_be<REF>() -> u128where
Self: HashedTypeDef<REF>,
fn type_hash_be<REF>() -> u128where
Self: HashedTypeDef<REF>,
return big endianess type hash
Source§fn type_uuid<REF>() -> Uuidwhere
Self: HashedTypeDef<REF>,
fn type_uuid<REF>() -> Uuidwhere
Self: HashedTypeDef<REF>,
return uuid derived from type hash
Source§fn type_uuid_hyphenated<REF>() -> Stringwhere
Self: HashedTypeDef<REF>,
fn type_uuid_hyphenated<REF>() -> Stringwhere
Self: HashedTypeDef<REF>,
return uuid hyphenated string
Source§fn self_type_hash_native<REF>(&self) -> u128where
Self: HashedTypeDef<REF>,
fn self_type_hash_native<REF>(&self) -> u128where
Self: HashedTypeDef<REF>,
return native type hash from instance
Source§fn self_type_hash_le<REF>(&self) -> u128where
Self: HashedTypeDef<REF>,
fn self_type_hash_le<REF>(&self) -> u128where
Self: HashedTypeDef<REF>,
return little endianess type hash from instance
Source§fn self_type_hash_be<REF>(&self) -> u128where
Self: HashedTypeDef<REF>,
fn self_type_hash_be<REF>(&self) -> u128where
Self: HashedTypeDef<REF>,
return big endianess type hash from instance
Source§fn self_type_uuid<REF>(&self) -> Uuidwhere
Self: HashedTypeDef<REF>,
fn self_type_uuid<REF>(&self) -> Uuidwhere
Self: HashedTypeDef<REF>,
return type hash-derived uuid from instance
Source§fn self_type_uuid_hyphenated<REF>(&self) -> Stringwhere
Self: HashedTypeDef<REF>,
fn self_type_uuid_hyphenated<REF>(&self) -> Stringwhere
Self: HashedTypeDef<REF>,
return uuid hyphenated string from instance
Source§impl<T> HashedTypeUuid for T
impl<T> HashedTypeUuid for T
Source§fn type_hash_native<REF>() -> u128where
Self: HashedTypeDef<REF>,
fn type_hash_native<REF>() -> u128where
Self: HashedTypeDef<REF>,
👎Deprecated since 0.1.2: please use
HashedTypeMethods
traitreturn native type hash
Source§fn type_hash_le<REF>() -> u128where
Self: HashedTypeDef<REF>,
fn type_hash_le<REF>() -> u128where
Self: HashedTypeDef<REF>,
👎Deprecated since 0.1.2: please use
HashedTypeMethods
traitreturn little endianess type hash
Source§fn type_hash_be<REF>() -> u128where
Self: HashedTypeDef<REF>,
fn type_hash_be<REF>() -> u128where
Self: HashedTypeDef<REF>,
👎Deprecated since 0.1.2: please use
HashedTypeMethods
traitreturn big endianess type hash
Source§fn type_uuid<REF>() -> Uuidwhere
Self: HashedTypeDef<REF>,
fn type_uuid<REF>() -> Uuidwhere
Self: HashedTypeDef<REF>,
👎Deprecated since 0.1.2: please use
HashedTypeMethods
traitreturn uuid derived from type hash
Source§fn type_uuid_hyphenated<REF>() -> Stringwhere
Self: HashedTypeDef<REF>,
fn type_uuid_hyphenated<REF>() -> Stringwhere
Self: HashedTypeDef<REF>,
👎Deprecated since 0.1.2: please use
HashedTypeMethods
traitreturn uuid hyphenated string
Source§fn self_type_hash_native<REF>(&self) -> u128where
Self: HashedTypeDef<REF>,
fn self_type_hash_native<REF>(&self) -> u128where
Self: HashedTypeDef<REF>,
👎Deprecated since 0.1.2: please use
HashedTypeMethods
traitreturn native type hash from instance
Source§fn self_type_hash_le<REF>(&self) -> u128where
Self: HashedTypeDef<REF>,
fn self_type_hash_le<REF>(&self) -> u128where
Self: HashedTypeDef<REF>,
👎Deprecated since 0.1.2: please use
HashedTypeMethods
traitreturn little endianess type hash from instance
Source§fn self_type_hash_be<REF>(&self) -> u128where
Self: HashedTypeDef<REF>,
fn self_type_hash_be<REF>(&self) -> u128where
Self: HashedTypeDef<REF>,
👎Deprecated since 0.1.2: please use
HashedTypeMethods
traitreturn big endianess type hash from instance
Source§fn self_type_uuid<REF>(&self) -> Uuidwhere
Self: HashedTypeDef<REF>,
fn self_type_uuid<REF>(&self) -> Uuidwhere
Self: HashedTypeDef<REF>,
👎Deprecated since 0.1.2: please use
HashedTypeMethods
traitreturn type hash-derived uuid from instance
Source§fn self_type_uuid_hyphenated<REF>(&self) -> Stringwhere
Self: HashedTypeDef<REF>,
fn self_type_uuid_hyphenated<REF>(&self) -> Stringwhere
Self: HashedTypeDef<REF>,
👎Deprecated since 0.1.2: please use
HashedTypeMethods
traitreturn uuid hyphenated string from instance