pub struct ReadStream {
pub subscriber_handle: ObjectId,
pub topic_handle: ObjectId,
pub delivery_control: DeliveryControl,
/* private fields */
}Expand description
Pro-READ_DATA-Request gehaltener Stream-State.
Fields§
§subscriber_handle: ObjectIdSubscriber-Object, dem der ReadStream zugeordnet ist.
topic_handle: ObjectIdTopic-Object, das gelesen wird.
delivery_control: DeliveryControlDelivery-Control mit allen Limits.
Implementations§
Source§impl ReadStream
impl ReadStream
Sourcepub fn new(
subscriber_handle: ObjectId,
topic_handle: ObjectId,
delivery_control: DeliveryControl,
now: Duration,
) -> Self
pub fn new( subscriber_handle: ObjectId, topic_handle: ObjectId, delivery_control: DeliveryControl, now: Duration, ) -> Self
Konstruktor.
Sourcepub fn is_finalized(&self) -> bool
pub fn is_finalized(&self) -> bool
true, wenn der Stream abgeschlossen ist.
Sourcepub fn samples_delivered(&self) -> u32
pub fn samples_delivered(&self) -> u32
Anzahl bereits gelieferter Samples.
Sourcepub fn push_sample(&mut self, sample: PendingSample)
pub fn push_sample(&mut self, sample: PendingSample)
App-Schicht reicht ein neues Sample ein.
Sourcepub fn queued_count(&self) -> usize
pub fn queued_count(&self) -> usize
Anzahl wartender Samples (noch nicht ausgeliefert).
Sourcepub fn pull_pending_samples(&mut self, now: Duration) -> Vec<PendingSample>
pub fn pull_pending_samples(&mut self, now: Duration) -> Vec<PendingSample>
Pull-Tick: liefert die Samples, die jetzt rate-konform ausgegeben
werden duerfen. now ist uptime-relativ.
Trait Implementations§
Source§impl Clone for ReadStream
impl Clone for ReadStream
Source§fn clone(&self) -> ReadStream
fn clone(&self) -> ReadStream
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ReadStream
impl RefUnwindSafe for ReadStream
impl Send for ReadStream
impl Sync for ReadStream
impl Unpin for ReadStream
impl UnsafeUnpin for ReadStream
impl UnwindSafe for ReadStream
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