#[non_exhaustive]pub enum TransportError {
CouldNotWrite(WriteError),
GotRst,
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
CouldNotWrite(WriteError)
Writing to the request buffer failed
This can be justified a transport error – for example, writing too large a payload just doesn’t work over UDP (but may work over TCP).
GotRst
An RST was sent in response to the request message
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for TransportError
impl Send for TransportError
impl Sync for TransportError
impl Unpin for TransportError
impl UnwindSafe for TransportError
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