pub enum HandlerReturn {
Ok(u32),
Error,
Cancel,
}
Expand description
Must return type of send and getter handlers that deal with raw bytes.
Variants§
Ok(u32)
Return this if every went ok together with how many bytes you read or writed.
Error
Return this if there was an error.
Cancel
Return this if you want to cancel the operation earlier.
Trait Implementations§
Source§impl Clone for HandlerReturn
impl Clone for HandlerReturn
Source§fn clone(&self) -> HandlerReturn
fn clone(&self) -> HandlerReturn
Returns a duplicate 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 Debug for HandlerReturn
impl Debug for HandlerReturn
impl Copy for HandlerReturn
Auto Trait Implementations§
impl Freeze for HandlerReturn
impl RefUnwindSafe for HandlerReturn
impl Send for HandlerReturn
impl Sync for HandlerReturn
impl Unpin for HandlerReturn
impl UnwindSafe for HandlerReturn
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