pub enum JsonStreamFrame {
Message(Value),
PeerHalfClosed,
TerminalSuccess,
TerminalError(Value),
}Expand description
Canonical portable JSON frame returned by stream-receive guest exports.
Variants§
Implementations§
Source§impl JsonStreamFrame
impl JsonStreamFrame
Sourcepub fn decode(
encoded: &str,
capability: &'static str,
) -> Result<JsonStreamItem, RuntimeFailure>
pub fn decode( encoded: &str, capability: &'static str, ) -> Result<JsonStreamItem, RuntimeFailure>
Parses one bounded guest result into the Adapter-neutral transport item.
Trait Implementations§
Source§impl Clone for JsonStreamFrame
impl Clone for JsonStreamFrame
Source§fn clone(&self) -> JsonStreamFrame
fn clone(&self) -> JsonStreamFrame
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 JsonStreamFrame
impl Debug for JsonStreamFrame
Source§impl<'de> Deserialize<'de> for JsonStreamFrame
impl<'de> Deserialize<'de> for JsonStreamFrame
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 JsonStreamFrame
impl PartialEq for JsonStreamFrame
Source§impl Serialize for JsonStreamFrame
impl Serialize for JsonStreamFrame
impl StructuralPartialEq for JsonStreamFrame
Auto Trait Implementations§
impl Freeze for JsonStreamFrame
impl RefUnwindSafe for JsonStreamFrame
impl Send for JsonStreamFrame
impl Sync for JsonStreamFrame
impl Unpin for JsonStreamFrame
impl UnsafeUnpin for JsonStreamFrame
impl UnwindSafe for JsonStreamFrame
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