pub struct StreamRefFrame {
pub stream_ref_id: StreamRefId,
pub message: StreamRefMessage,
}Expand description
One protobuf frame tagged with a connection-scoped stream-ref id.
Fields§
§stream_ref_id: StreamRefId§message: StreamRefMessageImplementations§
Source§impl StreamRefFrame
impl StreamRefFrame
pub fn new(stream_ref_id: StreamRefId, message: StreamRefMessage) -> Self
pub fn encode_to_vec(&self) -> Vec<u8> ⓘ
pub fn decode(bytes: &[u8]) -> StreamResult<Self>
Trait Implementations§
Source§impl Clone for StreamRefFrame
impl Clone for StreamRefFrame
Source§fn clone(&self) -> StreamRefFrame
fn clone(&self) -> StreamRefFrame
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 StreamRefFrame
impl Debug for StreamRefFrame
impl Eq for StreamRefFrame
Source§impl PartialEq for StreamRefFrame
impl PartialEq for StreamRefFrame
Source§fn eq(&self, other: &StreamRefFrame) -> bool
fn eq(&self, other: &StreamRefFrame) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StreamRefFrame
Auto Trait Implementations§
impl Freeze for StreamRefFrame
impl RefUnwindSafe for StreamRefFrame
impl Send for StreamRefFrame
impl Sync for StreamRefFrame
impl Unpin for StreamRefFrame
impl UnsafeUnpin for StreamRefFrame
impl UnwindSafe for StreamRefFrame
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> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> Message for T
impl<T> Message for T
Source§fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
Convert a BoxedMessage to this concrete type
Source§fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
Convert this message to a BoxedMessage