pub struct PreemptedError { /* private fields */ }Expand description
The server preempted the stream (connection.preempted).
Implementations§
Source§impl PreemptedError
impl PreemptedError
Sourcepub fn reason(&self) -> &PreemptReason
pub fn reason(&self) -> &PreemptReason
connection_limit (another connection took over) or quota_exceeded.
Sourcepub fn new_lease_id(&self) -> Option<&str>
pub fn new_lease_id(&self) -> Option<&str>
Lease id of the connection that took over, for connection_limit.
Trait Implementations§
Source§impl Clone for PreemptedError
impl Clone for PreemptedError
Source§impl Debug for PreemptedError
impl Debug for PreemptedError
Source§impl Display for PreemptedError
impl Display for PreemptedError
impl Eq for PreemptedError
Source§impl Error for PreemptedError
impl Error for PreemptedError
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 From<PreemptedError> for Error
impl From<PreemptedError> for Error
Source§fn from(e: PreemptedError) -> Self
fn from(e: PreemptedError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PreemptedError
impl PartialEq for PreemptedError
impl StructuralPartialEq for PreemptedError
Auto Trait Implementations§
impl Forget for PreemptedError
impl Freeze for PreemptedError
impl Move for PreemptedError
impl RefUnwindSafe for PreemptedError
impl Send for PreemptedErrorwhere
RawVecInner: Send,
impl Sync for PreemptedErrorwhere
RawVecInner: Sync,
impl Unpin for PreemptedError
impl UnsafeUnpin for PreemptedError
impl UnwindSafe for PreemptedErrorwhere
RawVecInner: 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