pub enum Role {
Owner,
Consumer,
}Expand description
Role of the local endpoint in the SHM pair.
The convention follows zerodds-transport-shm (Owner = producer):
in the DCPS model the writer writes samples into the ring buffer
→ the writer is the Owner. The reader reads them out → the
reader is the Consumer.
Variants§
Owner
Writer side — creates the SHM segment via open_owner and writes
sample datagrams into it.
Consumer
Reader side — attaches via open_consumer and reads sample
datagrams out of the segment.
Trait Implementations§
impl Copy for Role
impl Eq for Role
impl StructuralPartialEq for Role
Auto Trait Implementations§
impl Freeze for Role
impl RefUnwindSafe for Role
impl Send for Role
impl Sync for Role
impl Unpin for Role
impl UnsafeUnpin for Role
impl UnwindSafe for Role
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