pub struct StreamDeclarations { /* private fields */ }Implementations§
Source§impl StreamDeclarations
impl StreamDeclarations
pub fn try_from_streams<I>(
streams: I,
) -> Result<StreamDeclarations, StreamDeclarationsError>where
I: IntoIterator<Item = StreamId>,
pub fn single(stream: StreamId) -> StreamDeclarations
pub fn with_participant( self, participant: StreamId, ) -> Result<StreamDeclarations, StreamDeclarationsError>
pub fn is_empty(&self) -> bool
pub fn len(&self) -> usize
pub fn iter(&self) -> impl Iterator<Item = &StreamId>
Trait Implementations§
Source§impl Clone for StreamDeclarations
impl Clone for StreamDeclarations
Source§fn clone(&self) -> StreamDeclarations
fn clone(&self) -> StreamDeclarations
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StreamDeclarations
impl Debug for StreamDeclarations
Source§impl PartialEq for StreamDeclarations
impl PartialEq for StreamDeclarations
impl Eq for StreamDeclarations
impl StructuralPartialEq for StreamDeclarations
Auto Trait Implementations§
impl Freeze for StreamDeclarations
impl RefUnwindSafe for StreamDeclarations
impl Send for StreamDeclarations
impl Sync for StreamDeclarations
impl Unpin for StreamDeclarations
impl UnsafeUnpin for StreamDeclarations
impl UnwindSafe for StreamDeclarations
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