Enum batched_fn::Error
source · pub enum Error {
Full,
Disconnected,
}
Expand description
Error types that can occur while calling a batched function.
Variants§
Full
Channel is full.
This can happen if you’ve set channel_cap
, and should usually be handled
by returning a 503 error code from your server to signal that the server is too
busy at the moment to handle any more requests.
Disconnected
Channel has been disconnected, most likely due to the handler thread crashing.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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