@@ -37,23 +37,23 @@ pub extern "C" fn hello() -> bool {
3737/// BufferPublishers are required to adhere to the following, based on the
3838/// reactive streams specification:
3939/// * The total number of on_next´s signalled by a Publisher to a Subscriber
40- /// MUST be less than or equal to the total number of elements requested by that
41- /// Subscriber´s Subscription at all times.
40+ /// MUST be less than or equal to the total number of elements requested by that
41+ /// Subscriber´s Subscription at all times.
4242/// * A Publisher MAY signal fewer on_next than requested and terminate the
43- /// Subscription by calling on_complete or on_error.
43+ /// Subscription by calling on_complete or on_error.
4444/// * on_subscribe, on_next, on_error and on_complete signaled to a Subscriber
45- /// MUST be signaled serially.
45+ /// MUST be signaled serially.
4646/// * If a Publisher fails it MUST signal an on_error.
4747/// * If a Publisher terminates successfully (finite stream) it MUST signal an
48- /// on_complete.
48+ /// on_complete.
4949/// * If a Publisher signals either on_error or on_complete on a Subscriber,
50- /// that Subscriber’s Subscription MUST be considered cancelled.
50+ /// that Subscriber’s Subscription MUST be considered cancelled.
5151/// * Once a terminal state has been signaled (on_error, on_complete) it is
52- /// REQUIRED that no further signals occur.
52+ /// REQUIRED that no further signals occur.
5353/// * If a Subscription is cancelled its Subscriber MUST eventually stop being
54- /// signaled.
54+ /// signaled.
5555/// * A Publisher MAY support multiple Subscribers and decides whether each
56- /// Subscription is unicast or multicast.
56+ /// Subscription is unicast or multicast.
5757pub trait BufferPublisher {
5858 /// Returns the StreamConfig of buffers that publisher creates.
5959 fn get_publisher_stream_config ( & self ) -> StreamConfig ;
@@ -69,25 +69,25 @@ pub trait BufferPublisher {
6969/// BufferSubcribers are required to adhere to the following, based on the
7070/// reactive streams specification:
7171/// * The total number of on_next´s signalled by a Publisher to a Subscriber
72- /// MUST be less than or equal to the total number of elements requested by that
73- /// Subscriber´s Subscription at all times.
72+ /// MUST be less than or equal to the total number of elements requested by that
73+ /// Subscriber´s Subscription at all times.
7474/// * A Publisher MAY signal fewer on_next than requested and terminate the
75- /// Subscription by calling on_complete or on_error.
75+ /// Subscription by calling on_complete or on_error.
7676/// * on_subscribe, on_next, on_error and on_complete signaled to a Subscriber
77- /// MUST be signaled serially.
77+ /// MUST be signaled serially.
7878/// * If a Publisher fails it MUST signal an on_error.
7979/// * If a Publisher terminates successfully (finite stream) it MUST signal an
80- /// on_complete.
80+ /// on_complete.
8181/// * If a Publisher signals either on_error or on_complete on a Subscriber,
82- /// that Subscriber’s Subscription MUST be considered cancelled.
82+ /// that Subscriber’s Subscription MUST be considered cancelled.
8383/// * Once a terminal state has been signaled (on_error, on_complete) it is
84- /// REQUIRED that no further signals occur.
84+ /// REQUIRED that no further signals occur.
8585/// * If a Subscription is cancelled its Subscriber MUST eventually stop being
86- /// signaled.
86+ /// signaled.
8787/// * Publisher.subscribe MAY be called as many times as wanted but MUST be
88- /// with a different Subscriber each time.
88+ /// with a different Subscriber each time.
8989/// * A Publisher MAY support multiple Subscribers and decides whether each
90- /// Subscription is unicast or multicast.
90+ /// Subscription is unicast or multicast.
9191pub trait BufferSubscriber {
9292 /// The StreamConfig of buffers that this subscriber expects.
9393 fn get_subscriber_stream_config ( & self ) -> StreamConfig ;
@@ -111,39 +111,39 @@ pub trait BufferSubscriber {
111111/// BufferSubcriptions are required to adhere to the following, based on the
112112/// reactive streams specification:
113113/// * Subscription.request and Subscription.cancel MUST only be called inside
114- /// of its Subscriber context.
114+ /// of its Subscriber context.
115115/// * The Subscription MUST allow the Subscriber to call Subscription.request
116- /// synchronously from within on_next or on_subscribe.
116+ /// synchronously from within on_next or on_subscribe.
117117/// * Subscription.request MUST place an upper bound on possible synchronous
118- /// recursion between Publisher and Subscriber.
118+ /// recursion between Publisher and Subscriber.
119119/// * Subscription.request SHOULD respect the responsivity of its caller by
120- /// returning in a timely manner.
120+ /// returning in a timely manner.
121121/// * Subscription.cancel MUST respect the responsivity of its caller by
122- /// returning in a timely manner, MUST be idempotent and MUST be thread-safe.
122+ /// returning in a timely manner, MUST be idempotent and MUST be thread-safe.
123123/// * After the Subscription is cancelled, additional
124- /// Subscription.request(n: u64) MUST be NOPs.
124+ /// Subscription.request(n: u64) MUST be NOPs.
125125/// * After the Subscription is cancelled, additional Subscription.cancel()
126- /// MUST be NOPs.
126+ /// MUST be NOPs.
127127/// * While the Subscription is not cancelled, Subscription.request(n: u64)
128- /// MUST register the given number of additional elements to be produced to the
129- /// respective subscriber.
128+ /// MUST register the given number of additional elements to be produced to the
129+ /// respective subscriber.
130130/// * While the Subscription is not cancelled, Subscription.request(n: u64)
131- /// MUST signal on_error if the argument is <= 0. The cause message SHOULD
132- /// explain that non-positive request signals are illegal.
131+ /// MUST signal on_error if the argument is <= 0. The cause message SHOULD
132+ /// explain that non-positive request signals are illegal.
133133/// * While the Subscription is not cancelled, Subscription.request(n: u64)
134- /// MAY synchronously call on_next on this (or other) subscriber(s).
134+ /// MAY synchronously call on_next on this (or other) subscriber(s).
135135/// * While the Subscription is not cancelled, Subscription.request(n: u64)
136- /// MAY synchronously call on_complete or on_error on this (or other)
137- /// subscriber(s).
136+ /// MAY synchronously call on_complete or on_error on this (or other)
137+ /// subscriber(s).
138138/// * While the Subscription is not cancelled, Subscription.cancel() MUST
139- /// request the Publisher to eventually stop signaling its Subscriber. The
140- /// operation is NOT REQUIRED to affect the Subscription immediately.
139+ /// request the Publisher to eventually stop signaling its Subscriber. The
140+ /// operation is NOT REQUIRED to affect the Subscription immediately.
141141/// * While the Subscription is not cancelled, Subscription.cancel() MUST
142- /// request the Publisher to eventually drop any references to the corresponding
143- /// subscriber.
142+ /// request the Publisher to eventually drop any references to the corresponding
143+ /// subscriber.
144144/// * While the Subscription is not cancelled, calling Subscription.cancel MAY
145- /// cause the Publisher, if stateful, to transition into the shut-down state if
146- /// no other Subscription exists at this point.
145+ /// cause the Publisher, if stateful, to transition into the shut-down state if
146+ /// no other Subscription exists at this point.
147147/// * Calling Subscription.cancel MUST return normally.
148148/// * Calling Subscription.request MUST return normally.
149149pub trait BufferSubscription : Send + Sync + ' static {
0 commit comments