pub enum InterfaceRole {
Sender,
Receiver,
}Expand description
Which side of a module’s data flow an endpoint implements.
SENDER: Interface implemented by the owner of data, so the Receiver can Pull information from the data Sender/owner.
RECEIVER: Interface implemented by the receiver of data, so the Sender/owner can Push information to the Receiver.
Spec: 2.3.0 §version_information_endpoint_interface_role_enum
Variants§
Sender
The data owner’s interface, which the other party pulls from.
Wire value: SENDER
Receiver
The interface the data owner pushes to.
Wire value: RECEIVER
Implementations§
Source§impl InterfaceRole
impl InterfaceRole
Sourcepub const ALL_WIRE: &'static [&'static str]
pub const ALL_WIRE: &'static [&'static str]
Every wire value this enum accepts, in declaration order.
Sourcepub fn from_str_ignore_case(s: &str) -> Option<Self>
pub fn from_str_ignore_case(s: &str) -> Option<Self>
Parses a wire value, ignoring ASCII case.
OCPI enum values are case-sensitive, so this is only for peers known to get the
case wrong; FromStr is the strict version.
Source§impl InterfaceRole
impl InterfaceRole
Trait Implementations§
Source§impl Clone for InterfaceRole
impl Clone for InterfaceRole
Source§fn clone(&self) -> InterfaceRole
fn clone(&self) -> InterfaceRole
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 InterfaceRole
Source§impl Debug for InterfaceRole
impl Debug for InterfaceRole
Source§impl<'de> Deserialize<'de> for InterfaceRole
impl<'de> Deserialize<'de> for InterfaceRole
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for InterfaceRole
impl Display for InterfaceRole
impl Eq for InterfaceRole
Source§impl FromStr for InterfaceRole
impl FromStr for InterfaceRole
Source§impl Hash for InterfaceRole
impl Hash for InterfaceRole
Source§impl JsonSchema for InterfaceRole
Available on crate feature schema only.
impl JsonSchema for InterfaceRole
Available on crate feature
schema only.Source§fn json_schema(_g: &mut SchemaGenerator) -> Schema
fn json_schema(_g: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Ord for InterfaceRole
impl Ord for InterfaceRole
Source§fn cmp(&self, other: &InterfaceRole) -> Ordering
fn cmp(&self, other: &InterfaceRole) -> 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for InterfaceRole
impl PartialEq for InterfaceRole
Source§impl PartialOrd for InterfaceRole
impl PartialOrd for InterfaceRole
Source§impl Serialize for InterfaceRole
impl Serialize for InterfaceRole
impl StructuralPartialEq for InterfaceRole
Source§impl Validate for InterfaceRole
impl Validate for InterfaceRole
Auto Trait Implementations§
impl Freeze for InterfaceRole
impl RefUnwindSafe for InterfaceRole
impl Send for InterfaceRole
impl Sync for InterfaceRole
impl Unpin for InterfaceRole
impl UnsafeUnpin for InterfaceRole
impl UnwindSafe for InterfaceRole
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.