pub enum WorkerDataPlaneFrameError {
Io,
EmptyInput,
TruncatedHeader,
InvalidMagic,
UnsupportedSchemaVersion {
supported: u16,
received: u16,
},
UnknownFrameKind,
PayloadTooLarge {
kind: WorkerDataPlaneFrameKind,
payload_bytes: u64,
maximum: u64,
},
TruncatedPayload,
PayloadSizeUnsupported,
StreamingRequired {
kind: WorkerDataPlaneFrameKind,
},
UnexpectedSequence {
expected: u64,
received: u64,
},
SequenceExhausted,
}Expand description
Stable binary-frame parsing or serialization failure.
Variants§
Io
Reading or writing the stream failed.
EmptyInput
No frame header was supplied.
TruncatedHeader
Input ended inside a frame header.
InvalidMagic
Header magic does not identify the RustFerry data plane.
UnsupportedSchemaVersion
Header schema is not supported.
UnknownFrameKind
Frame kind has no defined v1 meaning.
PayloadTooLarge
Declared payload exceeds the fixed bound for its kind.
Fields
§
kind: WorkerDataPlaneFrameKindFrame interpretation.
TruncatedPayload
Input ended before the declared payload length.
PayloadSizeUnsupported
A small payload cannot be represented in local address space.
StreamingRequired
A raw source or artifact payload must be copied into a bounded sink.
Fields
§
kind: WorkerDataPlaneFrameKindRaw frame interpretation.
UnexpectedSequence
A frame was replayed, skipped, or reordered within its direction.
SequenceExhausted
No frame may follow sequence u64::MAX.
Trait Implementations§
Source§impl Clone for WorkerDataPlaneFrameError
impl Clone for WorkerDataPlaneFrameError
impl Copy for WorkerDataPlaneFrameError
Source§impl Debug for WorkerDataPlaneFrameError
impl Debug for WorkerDataPlaneFrameError
Source§impl Display for WorkerDataPlaneFrameError
impl Display for WorkerDataPlaneFrameError
impl Eq for WorkerDataPlaneFrameError
Source§impl Error for WorkerDataPlaneFrameError
impl Error for WorkerDataPlaneFrameError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl StructuralPartialEq for WorkerDataPlaneFrameError
Auto Trait Implementations§
impl Freeze for WorkerDataPlaneFrameError
impl RefUnwindSafe for WorkerDataPlaneFrameError
impl Send for WorkerDataPlaneFrameError
impl Sync for WorkerDataPlaneFrameError
impl Unpin for WorkerDataPlaneFrameError
impl UnsafeUnpin for WorkerDataPlaneFrameError
impl UnwindSafe for WorkerDataPlaneFrameError
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.