pub struct LimitError<T> { /* private fields */ }
Expand description
Errors returned from Limit
.
Implementations
sourceimpl<T> LimitError<T>
impl<T> LimitError<T>
sourcepub fn is_stream_err(&self) -> bool
pub fn is_stream_err(&self) -> bool
Returns true
if the error was caused by polling the stream.
sourcepub fn is_limit_err(&self) -> bool
pub fn is_limit_err(&self) -> bool
Returns true
if the stream reached its limit.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for LimitError<T> where
T: RefUnwindSafe,
impl<T> Send for LimitError<T> where
T: Send,
impl<T> Sync for LimitError<T> where
T: Sync,
impl<T> Unpin for LimitError<T> where
T: Unpin,
impl<T> UnwindSafe for LimitError<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more