pub enum ReadHandlerResult<T> {
Buffer(T),
Discard,
}
Expand description
Response from the read handler callback. A read handler can either return a byte to be added to the input buffer, or it can return a Discard response that will cause this byte to be discarded.
Variants§
Trait Implementations§
source§impl<T: Clone> Clone for ReadHandlerResult<T>
impl<T: Clone> Clone for ReadHandlerResult<T>
source§fn clone(&self) -> ReadHandlerResult<T>
fn clone(&self) -> ReadHandlerResult<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: Debug> Debug for ReadHandlerResult<T>
impl<T: Debug> Debug for ReadHandlerResult<T>
impl<T: Copy> Copy for ReadHandlerResult<T>
Auto Trait Implementations§
impl<T> Freeze for ReadHandlerResult<T>where
T: Freeze,
impl<T> RefUnwindSafe for ReadHandlerResult<T>where
T: RefUnwindSafe,
impl<T> Send for ReadHandlerResult<T>where
T: Send,
impl<T> Sync for ReadHandlerResult<T>where
T: Sync,
impl<T> Unpin for ReadHandlerResult<T>where
T: Unpin,
impl<T> UnwindSafe for ReadHandlerResult<T>where
T: 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