pub struct StreamChannelSelector {
pub channel: StreamChannel,
pub direction: Option<StreamDirection>,
}Expand description
Carries the stream channel selector record payload for journal, event, or fixture surfaces. Creating or cloning it only preserves serialized SDK state; append, publish, replay, or export effects are documented on the runtime and port methods that store it.
Fields§
§channel: StreamChannelChannel used by this record or request.
direction: Option<StreamDirection>Optional direction value. When absent, callers should use the documented default or skip that optional behavior.
Implementations§
Source§impl StreamChannelSelector
impl StreamChannelSelector
Sourcepub fn channel(channel: StreamChannel) -> Self
pub fn channel(channel: StreamChannel) -> Self
Builds the channel value with the documented defaults. This is data-only and does not perform I/O, call host ports, append journals, publish events, or start processes.
Sourcepub fn matches(&self, delta: &StreamDelta) -> bool
pub fn matches(&self, delta: &StreamDelta) -> bool
Returns matches for the current value. This is a read-only or data-construction helper unless the method body explicitly calls a port or store.
Trait Implementations§
Source§impl Clone for StreamChannelSelector
impl Clone for StreamChannelSelector
Source§fn clone(&self) -> StreamChannelSelector
fn clone(&self) -> StreamChannelSelector
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 StreamChannelSelector
impl Debug for StreamChannelSelector
Source§impl<'de> Deserialize<'de> for StreamChannelSelector
impl<'de> Deserialize<'de> for StreamChannelSelector
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 PartialEq for StreamChannelSelector
impl PartialEq for StreamChannelSelector
Source§fn eq(&self, other: &StreamChannelSelector) -> bool
fn eq(&self, other: &StreamChannelSelector) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for StreamChannelSelector
impl Serialize for StreamChannelSelector
impl Eq for StreamChannelSelector
impl StructuralPartialEq for StreamChannelSelector
Auto Trait Implementations§
impl Freeze for StreamChannelSelector
impl RefUnwindSafe for StreamChannelSelector
impl Send for StreamChannelSelector
impl Sync for StreamChannelSelector
impl Unpin for StreamChannelSelector
impl UnsafeUnpin for StreamChannelSelector
impl UnwindSafe for StreamChannelSelector
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