pub enum ReliableClientError<E> {
Transport(E),
MissingSourceClient,
PayloadTooLarge {
budget: usize,
actual: usize,
},
WindowFull {
peer_client: ClientId,
capacity: usize,
},
Encode(ReliableClientEncodeError),
Decode(ReliableClientDecodeError),
}Expand description
Error produced by reliable client endpoints.
Variants§
Transport(E)
Underlying transport failed.
MissingSourceClient
Inbound packet did not contain a source client id.
PayloadTooLarge
Payload exceeded configured byte budget.
WindowFull
Peer client in-flight window is full.
Encode(ReliableClientEncodeError)
Reliable frame encode failed.
Decode(ReliableClientDecodeError)
Reliable frame decode failed.
Trait Implementations§
Source§impl<E: Debug> Debug for ReliableClientError<E>
impl<E: Debug> Debug for ReliableClientError<E>
Source§impl<E: Display> Display for ReliableClientError<E>
impl<E: Display> Display for ReliableClientError<E>
Source§impl<E> Error for ReliableClientError<E>where
E: Error + 'static,
impl<E> Error for ReliableClientError<E>where
E: Error + 'static,
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()
Auto Trait Implementations§
impl<E> Freeze for ReliableClientError<E>where
E: Freeze,
impl<E> RefUnwindSafe for ReliableClientError<E>where
E: RefUnwindSafe,
impl<E> Send for ReliableClientError<E>where
E: Send,
impl<E> Sync for ReliableClientError<E>where
E: Sync,
impl<E> Unpin for ReliableClientError<E>where
E: Unpin,
impl<E> UnsafeUnpin for ReliableClientError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for ReliableClientError<E>where
E: UnwindSafe,
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