pub struct ChannelEnum(pub u32);Expand description
Represents a specific enumeration value for an enum channel.
Enum channels use numeric values to represent discrete states. This wrapper type makes it clear when a value represents an enum variant.
§Example
use sift_stream::{ChannelValue, ChannelEnum};
let enum_value = ChannelValue::new("state", ChannelEnum(0));Tuple Fields§
§0: u32Trait Implementations§
Source§impl Debug for ChannelEnum
impl Debug for ChannelEnum
Source§impl From<ChannelEnum> for Value
impl From<ChannelEnum> for Value
Source§fn from(value: ChannelEnum) -> Self
fn from(value: ChannelEnum) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ChannelEnum
impl PartialEq for ChannelEnum
Source§fn eq(&self, other: &ChannelEnum) -> bool
fn eq(&self, other: &ChannelEnum) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ChannelEnum
Auto Trait Implementations§
impl Freeze for ChannelEnum
impl RefUnwindSafe for ChannelEnum
impl Send for ChannelEnum
impl Sync for ChannelEnum
impl Unpin for ChannelEnum
impl UnsafeUnpin for ChannelEnum
impl UnwindSafe for ChannelEnum
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestSource§impl<T> RetryExt for T
impl<T> RetryExt for T
Source§fn retrying(self, cfg: RetryConfig) -> Retrying<Self>
fn retrying(self, cfg: RetryConfig) -> Retrying<Self>
Wraps
self in a Retrying adapter with the given configuration.