Enum strymon_model::TopicSchema
[−]
[src]
pub enum TopicSchema { Stream(TopicType, TopicType), Service(TopicType), }
The kind of protocol used in a topic.
A topic can either be a Stream
topic, which provides access to a published Timely Dataflow
edge, or it be of the Service
, which it describes the interface of an request-response kind of
service.
See also the strymon_job
crate for more information on topics.
Variants
Stream(TopicType, TopicType)
Service(TopicType)
A service exporting the given Name
interface type.
Methods
impl TopicSchema
[src]
pub fn is_stream(&self) -> bool
[src]
Returns true
for any Stream
topic.
pub fn is_service(&self) -> bool
[src]
Returns true
for any Service
topic.
Trait Implementations
impl Clone for TopicSchema
[src]
fn clone(&self) -> TopicSchema
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for TopicSchema
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for TopicSchema
[src]
fn eq(&self, __arg_0: &TopicSchema) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &TopicSchema) -> bool
[src]
This method tests for !=
.
impl Eq for TopicSchema
[src]
impl Hash for TopicSchema
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Abomonation for TopicSchema
[src]
unsafe fn entomb<W: Write>(&self, _write: &mut W) -> Result<()>
[src]
Write any additional information about &self
beyond its binary representation. Read more
fn extent(&self) -> usize
[src]
Reports the number of further bytes required to entomb self
.
unsafe fn exhume<'a, 'b>(
&'a mut self,
bytes: &'b mut [u8]
) -> Option<&'b mut [u8]>
[src]
&'a mut self,
bytes: &'b mut [u8]
) -> Option<&'b mut [u8]>
Recover any information for &mut self
not evident from its binary representation. Read more
impl TypeName for TopicSchema
[src]
fn fmt(f: &mut Formatter) -> Result
[src]
Formats the fully qualified type name using the given formatter.
fn type_name() -> String
Returns the canoncial, concrete name of a type as a string. # Examples Read more
fn type_name_of(&self) -> String
Returns the canoncial type of a value as a string. # Examples Read more