pub enum FrameEncodeError {
EntityTooLong {
len: usize,
},
RowIdTooLong {
len: usize,
},
}Expand description
Errors from encode_crdt_frame. Surfaced loud rather than silently
truncating so a pathological entity / row_id name (>64 KiB) becomes
an observable failure instead of a malformed frame the client can’t
decode.
Variants§
EntityTooLong
Entity name exceeds the 16-bit length header. In practice every
Pylon entity name is well under 100 bytes — hitting this means
the caller is using the encoder for something it wasn’t designed
for. The bound is u16::MAX = 65535 bytes (UTF-8 length).
RowIdTooLong
Row ID exceeds the 16-bit length header. Pylon-generated IDs are 40 hex chars; user-supplied IDs aren’t validated up to this layer but are practically bounded by URL / SQL constraints elsewhere.
Trait Implementations§
Source§impl Clone for FrameEncodeError
impl Clone for FrameEncodeError
Source§fn clone(&self) -> FrameEncodeError
fn clone(&self) -> FrameEncodeError
Returns a duplicate of the value. Read more
1.0.0 · 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 FrameEncodeError
impl Debug for FrameEncodeError
Source§impl Display for FrameEncodeError
impl Display for FrameEncodeError
Source§impl Error for FrameEncodeError
impl Error for FrameEncodeError
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()
Source§impl PartialEq for FrameEncodeError
impl PartialEq for FrameEncodeError
impl Eq for FrameEncodeError
impl StructuralPartialEq for FrameEncodeError
Auto Trait Implementations§
impl Freeze for FrameEncodeError
impl RefUnwindSafe for FrameEncodeError
impl Send for FrameEncodeError
impl Sync for FrameEncodeError
impl Unpin for FrameEncodeError
impl UnsafeUnpin for FrameEncodeError
impl UnwindSafe for FrameEncodeError
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