pub enum WireItem {
Data(Value),
Done,
Refused(String, Value),
Failed(String),
Dropped,
}Expand description
One item of a call’s stream.
Variants§
Data(Value)
A data event’s content ({"type": "summary", …}).
Done
The stream ended normally.
Refused(String, Value)
The server refused the call (the gate’s forbidden, …): its words,
and GAMMA-6: the refusal typed as the service sent it — its
error_kind, error, code and the fields beside them (grant,
scope, roles, held_on, …); null when the wire has none.
Failed(String)
The call failed under the transport — never sent (the socket not open), or a frame it could not read: its words. A reconnect re-opens what the engine still wants.
Dropped
FRAME-37: the socket dropped under the call (plexus-client’s
Closed); a reconnect re-opens what the engine still wants.
Trait Implementations§
impl StructuralPartialEq for WireItem
Auto Trait Implementations§
impl Forget for WireItem
impl Freeze for WireItem
impl Move for WireItem
impl RefUnwindSafe for WireItem
impl Send for WireItem
impl Sync for WireItem
impl Unpin for WireItem
impl UnsafeUnpin for WireItem
impl UnwindSafe for WireItem
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> Variant for T
impl<T> Variant for T
Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert this
Variant trait object to &mut dyn Any.Source§fn as_boxed_any(self: Box<T>) -> Box<dyn Any>
fn as_boxed_any(self: Box<T>) -> Box<dyn Any>
Convert this
Variant trait object to Box<dyn Any>.