pub struct Direction { /* private fields */ }Expand description
Direction metadata for an endpoint.
Implementations§
Source§impl Direction
impl Direction
Sourcepub fn new(
schema_id: SchemaId,
cardinality: Cardinality,
backpressure: Backpressure,
) -> Self
pub fn new( schema_id: SchemaId, cardinality: Cardinality, backpressure: Backpressure, ) -> Self
Create a new direction with the supplied schema, cardinality, and backpressure.
Sourcepub fn cardinality(&self) -> Cardinality
pub fn cardinality(&self) -> Cardinality
Cardinality constraint for this direction.
Sourcepub fn backpressure(&self) -> Backpressure
pub fn backpressure(&self) -> Backpressure
Backpressure behaviour for this direction.
Sourcepub fn exclusive(&self) -> bool
pub fn exclusive(&self) -> bool
Whether this direction must remain isolated on its own channel.
Sourcepub fn with_exclusive(self, exclusive: bool) -> Self
pub fn with_exclusive(self, exclusive: bool) -> Self
Set whether this direction must remain isolated on its own channel.
Trait Implementations§
impl Copy for Direction
impl Eq for Direction
impl StructuralPartialEq for Direction
Auto Trait Implementations§
impl Freeze for Direction
impl RefUnwindSafe for Direction
impl Send for Direction
impl Sync for Direction
impl Unpin for Direction
impl UnwindSafe for Direction
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