pub struct StreamErrorSpec {
pub stream_id: [u8; 16],
pub code: String,
pub message: String,
pub signer: Option<[u8; 32]>,
}Expand description
Fields for a STREAM_ERROR frame — the explicit abort a well-behaved
peer sends instead of just dropping the stream on any non-normal
termination (plans/PLAN_WIRE_PROTOCOL.md §13.1, point 4). code
here is a free-form label (is_binary(Code) in the reference), NOT
a BOLT#4 numeric code like an ERROR (§6.4) frame’s code — streaming
aborts and unary-call errors use unrelated error vocabularies.
signer: see StreamDataSpec::signer’s doc — same field, same
reasoning.
Fields§
§stream_id: [u8; 16]§code: String§message: String§signer: Option<[u8; 32]>Implementations§
Trait Implementations§
Source§impl Clone for StreamErrorSpec
impl Clone for StreamErrorSpec
Source§fn clone(&self) -> StreamErrorSpec
fn clone(&self) -> StreamErrorSpec
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 moreAuto Trait Implementations§
impl Freeze for StreamErrorSpec
impl RefUnwindSafe for StreamErrorSpec
impl Send for StreamErrorSpec
impl Sync for StreamErrorSpec
impl Unpin for StreamErrorSpec
impl UnsafeUnpin for StreamErrorSpec
impl UnwindSafe for StreamErrorSpec
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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