pub struct DockerFrameTooLarge(pub usize);Expand description
Error returned by encode_docker_frame / LogLine::to_docker_frame when
a payload is too large to encode in a Docker multiplexed-stream frame, whose
length field is a big-endian u32. The wrapped value is the offending
payload length in bytes.
This replaces the old zlayer-api behavior of silently truncating the length
with unwrap_or(u32::MAX) — oversize payloads now surface as an explicit
error instead of producing a corrupt frame.
Tuple Fields§
§0: usizeTrait Implementations§
Source§impl Clone for DockerFrameTooLarge
impl Clone for DockerFrameTooLarge
Source§fn clone(&self) -> DockerFrameTooLarge
fn clone(&self) -> DockerFrameTooLarge
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 DockerFrameTooLarge
impl Debug for DockerFrameTooLarge
Source§impl Display for DockerFrameTooLarge
impl Display for DockerFrameTooLarge
impl Eq for DockerFrameTooLarge
Source§impl Error for DockerFrameTooLarge
impl Error for DockerFrameTooLarge
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 DockerFrameTooLarge
impl PartialEq for DockerFrameTooLarge
Source§fn eq(&self, other: &DockerFrameTooLarge) -> bool
fn eq(&self, other: &DockerFrameTooLarge) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DockerFrameTooLarge
Auto Trait Implementations§
impl Freeze for DockerFrameTooLarge
impl RefUnwindSafe for DockerFrameTooLarge
impl Send for DockerFrameTooLarge
impl Sync for DockerFrameTooLarge
impl Unpin for DockerFrameTooLarge
impl UnsafeUnpin for DockerFrameTooLarge
impl UnwindSafe for DockerFrameTooLarge
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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.
Source§impl<T> ValidateIp for Twhere
T: ToString,
impl<T> ValidateIp for Twhere
T: ToString,
Source§fn validate_ipv4(&self) -> bool
fn validate_ipv4(&self) -> bool
Validates whether the given string is an IP V4
Source§fn validate_ipv6(&self) -> bool
fn validate_ipv6(&self) -> bool
Validates whether the given string is an IP V6
Source§fn validate_ip(&self) -> bool
fn validate_ip(&self) -> bool
Validates whether the given string is an IP