pub struct StreamId {
pub node_id: NodeId,
pub stream_nr: StreamNr,
}
Expand description
The unique identifier of a single event stream emitted by an AX node
The emitting node — identified by its NodeId
— may emit multiple
streams with different IDs. The emitting node’s ID can be extracted from this stream ID
without further information.
The default serialization of this type is the string representation of the NodeId
followed by a dot and a base64url multibase-encoded multiformats-varint (see also
varint
).
Fields§
§node_id: NodeId
§stream_nr: StreamNr
Implementations§
Trait Implementations§
Source§impl Decode<DagCborCodec> for StreamId
impl Decode<DagCborCodec> for StreamId
Source§impl<'de> Deserialize<'de> for StreamId
impl<'de> Deserialize<'de> for StreamId
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 Encode<DagCborCodec> for StreamId
impl Encode<DagCborCodec> for StreamId
Source§impl Ord for StreamId
impl Ord for StreamId
Source§impl PartialOrd for StreamId
impl PartialOrd for StreamId
impl Copy for StreamId
impl Eq for StreamId
impl StructuralPartialEq for StreamId
Auto Trait Implementations§
impl Freeze for StreamId
impl RefUnwindSafe for StreamId
impl Send for StreamId
impl Sync for StreamId
impl Unpin for StreamId
impl UnwindSafe for StreamId
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