pub struct StreamModes(/* private fields */);Expand description
A set of selected modes. Keeps an event if any mode matches.
Implementations§
Source§impl StreamModes
impl StreamModes
Sourcepub fn only(mode: StreamMode) -> Self
pub fn only(mode: StreamMode) -> Self
Select one mode.
Sourcepub fn from_modes<I: IntoIterator<Item = StreamMode>>(modes: I) -> Self
pub fn from_modes<I: IntoIterator<Item = StreamMode>>(modes: I) -> Self
Build from an explicit list.
Sourcepub fn with(self, mode: StreamMode) -> Self
pub fn with(self, mode: StreamMode) -> Self
Add another mode.
Sourcepub fn modes(&self) -> &[StreamMode]
pub fn modes(&self) -> &[StreamMode]
All selected modes.
Trait Implementations§
Source§impl Clone for StreamModes
impl Clone for StreamModes
Source§fn clone(&self) -> StreamModes
fn clone(&self) -> StreamModes
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StreamModes
impl Debug for StreamModes
Source§impl Default for StreamModes
impl Default for StreamModes
Source§fn default() -> StreamModes
fn default() -> StreamModes
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StreamModes
impl RefUnwindSafe for StreamModes
impl Send for StreamModes
impl Sync for StreamModes
impl Unpin for StreamModes
impl UnsafeUnpin for StreamModes
impl UnwindSafe for StreamModes
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