pub enum StreamFrame<'a> {
Message(&'a [u8]),
Failure(CallFailure),
RawBody {
length: u64,
},
}Expand description
One length-delimited item within a server or bidirectional stream.
Variants§
Message(&'a [u8])
Encoded protobuf stream message.
Failure(CallFailure)
Terminal contract-owned failure.
RawBody
Header for a known-length raw body that immediately follows this item.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for StreamFrame<'a>
impl<'a> RefUnwindSafe for StreamFrame<'a>
impl<'a> Send for StreamFrame<'a>
impl<'a> Sync for StreamFrame<'a>
impl<'a> Unpin for StreamFrame<'a>
impl<'a> UnsafeUnpin for StreamFrame<'a>
impl<'a> UnwindSafe for StreamFrame<'a>
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