pub enum ReadGrantError {
Empty,
GrantInProgress,
InconsistentFrameHeader,
}Expand description
Errors associated with obtaining a read grant
Variants§
Empty
Unable to create write grant due to not enough room in the buffer
GrantInProgress
Unable to create write grant due to existing write grant
InconsistentFrameHeader
We observed a frame header that did not make sense. This should only occur if a stream producer was used on one end and a frame consumer was used on the other end. Don’t do that.
If you see this error and you are NOT doing that, please report it, as it is a bug.
Trait Implementations§
Source§impl Debug for ReadGrantError
impl Debug for ReadGrantError
Source§impl PartialEq for ReadGrantError
impl PartialEq for ReadGrantError
impl StructuralPartialEq for ReadGrantError
Auto Trait Implementations§
impl Freeze for ReadGrantError
impl RefUnwindSafe for ReadGrantError
impl Send for ReadGrantError
impl Sync for ReadGrantError
impl Unpin for ReadGrantError
impl UnwindSafe for ReadGrantError
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