pub enum EndpointError {
BufferOverflow,
Disabled,
}
Expand description
Errors returned by EndpointIn::write
and EndpointOut::read
Variants§
BufferOverflow
Either the packet to be written is too long to fit in the transmission
buffer or the received packet is too long to fit in buf
.
Disabled
The endpoint is disabled.
Trait Implementations§
source§impl Clone for EndpointError
impl Clone for EndpointError
source§fn clone(&self) -> EndpointError
fn clone(&self) -> EndpointError
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 Debug for EndpointError
impl Debug for EndpointError
source§impl PartialEq for EndpointError
impl PartialEq for EndpointError
source§fn eq(&self, other: &EndpointError) -> bool
fn eq(&self, other: &EndpointError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for EndpointError
impl Eq for EndpointError
impl StructuralPartialEq for EndpointError
Auto Trait Implementations§
impl Freeze for EndpointError
impl RefUnwindSafe for EndpointError
impl Send for EndpointError
impl Sync for EndpointError
impl Unpin for EndpointError
impl UnwindSafe for EndpointError
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