Struct StarterProducerWithFlow

Source
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

Source

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>
where P: AsRef<Path>, I: IntoIterator<Item = String>, O: IntoIterator<Item = String>,

Add a new intracluster query channel to starters builder

  • path: P : path of the file where channel is serialized
  • name: String : name of the channel
  • cluster: SocketAddr : socket address of the cluster in which the channel operates
  • in_names: I : collection of querying servants of the cluster
  • out_names: O : collection of replying servants of the cluster
  • max_ping: Duration : max ping duration for the channel
  • size: Option<usize> : size of the channel (None for unlimited)
  • P : type of path
  • I : type of the collection of querying servants
  • O : type of the collection of replying servants
  • Output: completed starter builder or error
Source

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>
where P: AsRef<Path>, I: IntoIterator<Item = String>, O: IntoIterator<Item = String>,

Add a new intracluster broadcast channel to starters builder

  • path: P : path of the file where channel is serialized
  • name: String : name of the channel
  • cluster: SocketAddr : socket address of the cluster in which the channel operates
  • in_names: I : collection of querying servants of the cluster
  • out_names: O : collection of replying servants of the cluster
  • max_ping: Duration : max ping duration for the channel
  • size: usize : size of the channel
  • P : type of path
  • I : type of the collection of querying servants
  • O : type of the collection of replying servants
  • Output: completed starter builder or error
Source

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>
where P: AsRef<Path>, I: IntoIterator<Item = String>, O: IntoIterator<Item = String>,

Add a new signal channel (intracluster) to starters builder

  • path: P : path of the file where channel is serialized
  • name: String : name of the channel
  • cluster: SocketAddr : socket address of the cluster in which the channel operates
  • in_names: I : collection of querying servants of the cluster
  • out_names: O : collection of replying servants of the cluster
  • max_ping: Duration : max ping duration for the channel
  • P : type of path
  • I : type of the collection of querying servants
  • O : type of the collection of replying servants
  • Output: completed starter builder or error
Source

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>
where P: AsRef<Path>, I: IntoIterator<Item = String>, O: IntoIterator<Item = String>,

Add a new intercluster query channel to starters builder

  • path: P : path of the file where channel is serialized
  • name: String : name of the channel
  • in_cluster: SocketAddr : socket address of the cluster from which the channel operates
  • in_names: I : collection of querying servants of the input cluster
  • out_cluster: SocketAddr : socket address of the cluster to which the channel operates
  • out_names: O : collection of replying servants of the output cluster
  • max_ping: Duration : max ping duration for the channel
  • size: Option<usize> : size of the channel (None for unlimited)
  • P : type of path
  • I : type of the collection of querying servants
  • O : type of the collection of replying servants
  • Output: completed starter builder or error
Source

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>
where P: AsRef<Path>, I: IntoIterator<Item = String>, O: IntoIterator<Item = String>,

Add a new intercluster broadcast channel to starters builder

  • path: P : path of the file where channel is serialized
  • name: String : name of the channel
  • in_cluster: SocketAddr : socket address of the cluster from which the channel operates
  • in_names: I : collection of querying servants of the input cluster
  • out_cluster: SocketAddr : socket address of the cluster to which the channel operates
  • out_names: O : collection of replying servants of the output cluster
  • max_ping: Duration : max ping duration for the channel
  • size: usize : size of the channel
  • P : type of path
  • I : type of the collection of querying servants
  • O : type of the collection of replying servants
  • Output: completed starter builder or error
Source

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
Source

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§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> ArchivePointee for T

Source§

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.
Source§

fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata

Converts some archived metadata to the pointer metadata for itself.
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

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
where W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,

Source§

fn deserialize( &self, deserializer: &mut D, ) -> Result<With<T, W>, <D as Fallible>::Error>

Deserializes using the given deserializer
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, O> FromSlx<T> for O
where T: SlxInto<O>,

Source§

fn from_slx(slx: T) -> O

Convert slx data into original data Read more
Source§

impl<T> HashedTypeMethods for T

Source§

fn type_hash_native<REF>() -> u128
where Self: HashedTypeDef<REF>,

return native type hash
Source§

fn type_hash_le<REF>() -> u128
where Self: HashedTypeDef<REF>,

return little endianess type hash
Source§

fn type_hash_be<REF>() -> u128
where Self: HashedTypeDef<REF>,

return big endianess type hash
Source§

fn type_uuid<REF>() -> Uuid
where Self: HashedTypeDef<REF>,

return uuid derived from type hash
Source§

fn type_uuid_hyphenated<REF>() -> String
where Self: HashedTypeDef<REF>,

return uuid hyphenated string
Source§

fn self_type_hash_native<REF>(&self) -> u128
where Self: HashedTypeDef<REF>,

return native type hash from instance
Source§

fn self_type_hash_le<REF>(&self) -> u128
where Self: HashedTypeDef<REF>,

return little endianess type hash from instance
Source§

fn self_type_hash_be<REF>(&self) -> u128
where Self: HashedTypeDef<REF>,

return big endianess type hash from instance
Source§

fn self_type_uuid<REF>(&self) -> Uuid
where Self: HashedTypeDef<REF>,

return type hash-derived uuid from instance
Source§

fn self_type_uuid_hyphenated<REF>(&self) -> String
where Self: HashedTypeDef<REF>,

return uuid hyphenated string from instance
Source§

impl<T> HashedTypeUuid for T

Source§

fn type_hash_native<REF>() -> u128
where Self: HashedTypeDef<REF>,

👎Deprecated since 0.1.2: please use HashedTypeMethods trait
return native type hash
Source§

fn type_hash_le<REF>() -> u128
where Self: HashedTypeDef<REF>,

👎Deprecated since 0.1.2: please use HashedTypeMethods trait
return little endianess type hash
Source§

fn type_hash_be<REF>() -> u128
where Self: HashedTypeDef<REF>,

👎Deprecated since 0.1.2: please use HashedTypeMethods trait
return big endianess type hash
Source§

fn type_uuid<REF>() -> Uuid
where Self: HashedTypeDef<REF>,

👎Deprecated since 0.1.2: please use HashedTypeMethods trait
return uuid derived from type hash
Source§

fn type_uuid_hyphenated<REF>() -> String
where Self: HashedTypeDef<REF>,

👎Deprecated since 0.1.2: please use HashedTypeMethods trait
return uuid hyphenated string
Source§

fn self_type_hash_native<REF>(&self) -> u128
where Self: HashedTypeDef<REF>,

👎Deprecated since 0.1.2: please use HashedTypeMethods trait
return native type hash from instance
Source§

fn self_type_hash_le<REF>(&self) -> u128
where Self: HashedTypeDef<REF>,

👎Deprecated since 0.1.2: please use HashedTypeMethods trait
return little endianess type hash from instance
Source§

fn self_type_hash_be<REF>(&self) -> u128
where Self: HashedTypeDef<REF>,

👎Deprecated since 0.1.2: please use HashedTypeMethods trait
return big endianess type hash from instance
Source§

fn self_type_uuid<REF>(&self) -> Uuid
where Self: HashedTypeDef<REF>,

👎Deprecated since 0.1.2: please use HashedTypeMethods trait
return type hash-derived uuid from instance
Source§

fn self_type_uuid_hyphenated<REF>(&self) -> String
where Self: HashedTypeDef<REF>,

👎Deprecated since 0.1.2: please use HashedTypeMethods trait
return uuid hyphenated string from instance
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, O> IntoSlx<T> for O
where T: SlxFrom<O>,

Source§

fn slx(self) -> T

Convert original data into slx data Read more
Source§

impl<T> Pointee for T

Source§

type Metadata = ()

The type for metadata in pointers and references to Self.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.