pub struct ForwardPacketError { /* private fields */ }Available on crate feature
server only.Expand description
Error returned when forwarding a packet to a client fails.
This error occurs when the relay server cannot deliver a packet to its intended recipient, typically due to the client’s send queue being full or the client disconnecting.
Implementations§
Source§impl ForwardPacketError
impl ForwardPacketError
Sourcepub fn new(reason: SendError) -> Self
pub fn new(reason: SendError) -> Self
Creates a new ForwardPacketError error.
Trait Implementations§
Source§impl Debug for ForwardPacketError
impl Debug for ForwardPacketError
Source§impl Display for ForwardPacketError
impl Display for ForwardPacketError
Source§impl Error for ForwardPacketError
impl Error for ForwardPacketError
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 From<ForwardPacketError> for AnyError
impl From<ForwardPacketError> for AnyError
Source§fn from(value: ForwardPacketError) -> AnyError
fn from(value: ForwardPacketError) -> AnyError
Converts to this type from the input type.
Source§impl From<ForwardPacketError> for HandleFrameError
impl From<ForwardPacketError> for HandleFrameError
Source§fn from(source: ForwardPacketError) -> Self
fn from(source: ForwardPacketError) -> Self
Converts to this type from the input type.
Source§impl From<ForwardPacketError> for RunError
impl From<ForwardPacketError> for RunError
Source§fn from(source: ForwardPacketError) -> Self
fn from(source: ForwardPacketError) -> Self
Converts to this type from the input type.
Source§impl StackError for ForwardPacketError
impl StackError for ForwardPacketError
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Returns this error as a std error reference.
Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Returns this error as a std error.
Source§fn is_transparent(&self) -> bool
fn is_transparent(&self) -> bool
Returns whether this error is transparent and should be skipped in reports.
Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Returns the next source in the chain, if any.
Auto Trait Implementations§
impl Freeze for ForwardPacketError
impl RefUnwindSafe for ForwardPacketError
impl Send for ForwardPacketError
impl Sync for ForwardPacketError
impl Unpin for ForwardPacketError
impl UnwindSafe for ForwardPacketError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> StackErrorExt for Twhere
T: StackError + 'static,
impl<T> StackErrorExt for Twhere
T: StackError + 'static,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.