pub enum StreamDirection {
InputToProvider,
OutputFromProvider,
}Expand description
Enumerates the finite stream direction cases. Serialized names are part of the SDK contract; update fixtures when variants change.
Variants§
InputToProvider
Use this variant when the contract needs to represent input to provider; selecting it has no side effect by itself.
OutputFromProvider
Use this variant when the contract needs to represent output from provider; selecting it has no side effect by itself.
Trait Implementations§
Source§impl Clone for StreamDirection
impl Clone for StreamDirection
Source§fn clone(&self) -> StreamDirection
fn clone(&self) -> StreamDirection
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 StreamDirection
impl Debug for StreamDirection
Source§impl<'de> Deserialize<'de> for StreamDirection
impl<'de> Deserialize<'de> for StreamDirection
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for StreamDirection
impl Hash for StreamDirection
Source§impl Ord for StreamDirection
impl Ord for StreamDirection
Source§fn cmp(&self, other: &StreamDirection) -> Ordering
fn cmp(&self, other: &StreamDirection) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for StreamDirection
impl PartialEq for StreamDirection
Source§fn eq(&self, other: &StreamDirection) -> bool
fn eq(&self, other: &StreamDirection) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for StreamDirection
impl PartialOrd for StreamDirection
Source§impl Serialize for StreamDirection
impl Serialize for StreamDirection
impl Eq for StreamDirection
impl StructuralPartialEq for StreamDirection
Auto Trait Implementations§
impl Freeze for StreamDirection
impl RefUnwindSafe for StreamDirection
impl Send for StreamDirection
impl Sync for StreamDirection
impl Unpin for StreamDirection
impl UnsafeUnpin for StreamDirection
impl UnwindSafe for StreamDirection
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