Struct kernel::queues::publisher::Subscriber
[−]
[src]
pub struct Subscriber<T> { pub token: usize, // some fields omitted }
Fields
token: usize
Methods
impl<T> Subscriber<T>
[src]
fn new(
ring: Arc<RingBuffer<T>>,
cursors: UncheckedUnsafeArc<Vec<Cursor>>,
token: usize
) -> Self
ring: Arc<RingBuffer<T>>,
cursors: UncheckedUnsafeArc<Vec<Cursor>>,
token: usize
) -> Self
fn recv(&self) -> Option<&T>
fn recv_n(&self, n: usize) -> Option<&[T]>
fn recv_all(&self) -> Option<&[T]>
fn commit(&self)
Trait Implementations
impl<T> Debug for Subscriber<T>
[src]
impl<T: Send> Send for Subscriber<T>
[src]
impl<T> !Sync for Subscriber<T>
[src]
impl<T> Clone for Subscriber<T>
[src]
fn clone(&self) -> Subscriber<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more