pub struct Stream { /* private fields */ }Expand description
Implementations§
Source§impl Stream
impl Stream
pub fn new( data: LogicalStreamType, throughput: PositiveReal, dimensionality: NonNegative, synchronicity: Synchronicity, complexity: impl Into<Complexity>, direction: Direction, user: Option<LogicalStreamType>, keep: bool, ) -> Self
pub fn new_basic(data: LogicalStreamType) -> Self
pub fn data(&self) -> &LogicalStreamType
Sourcepub fn synchronicity(&self) -> Synchronicity
pub fn synchronicity(&self) -> Synchronicity
Returns the synchronicity of this stream.
Sourcepub fn dimensionality(&self) -> NonNegative
pub fn dimensionality(&self) -> NonNegative
Returns the dimensionality of this stream.
Sourcepub fn throughput(&self) -> PositiveReal
pub fn throughput(&self) -> PositiveReal
Returns the throughput ratio of this stream.
Trait Implementations§
Source§impl From<Stream> for LogicalStreamType
impl From<Stream> for LogicalStreamType
Source§fn from(stream: Stream) -> Self
fn from(stream: Stream) -> Self
Wraps this stream in a LogicalStreamType.
Source§impl Typify for Stream
impl Typify for Stream
impl StructuralPartialEq for Stream
Auto Trait Implementations§
impl Freeze for Stream
impl RefUnwindSafe for Stream
impl Send for Stream
impl Sync for Stream
impl Unpin for Stream
impl UnwindSafe for Stream
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