pub enum HostDirection {
Input,
Output,
Duplex,
}Expand description
Direction of a host stream relative to the device.
Variants§
Input
Device delivers data into the runtime (a source).
Output
Device receives data from the runtime (a sink).
Duplex
Device both delivers and receives data.
Implementations§
Source§impl HostDirection
impl HostDirection
Sourcepub fn stream_direction(self) -> StreamDirection
pub fn stream_direction(self) -> StreamDirection
Maps this host direction to the core StreamDirection.
Sourcepub fn effect_kind(self) -> Symbol
pub fn effect_kind(self) -> Symbol
Returns the effect kind an open in this direction performs (device read for input, device write for output or duplex).
Trait Implementations§
Source§impl Clone for HostDirection
impl Clone for HostDirection
Source§fn clone(&self) -> HostDirection
fn clone(&self) -> HostDirection
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 moreimpl Copy for HostDirection
Source§impl Debug for HostDirection
impl Debug for HostDirection
impl Eq for HostDirection
Source§impl PartialEq for HostDirection
impl PartialEq for HostDirection
Source§fn eq(&self, other: &HostDirection) -> bool
fn eq(&self, other: &HostDirection) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HostDirection
Auto Trait Implementations§
impl Freeze for HostDirection
impl RefUnwindSafe for HostDirection
impl Send for HostDirection
impl Sync for HostDirection
impl Unpin for HostDirection
impl UnsafeUnpin for HostDirection
impl UnwindSafe for HostDirection
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