Enum bonsaidb::client::fabruic::error::WriteError
pub enum WriteError {
Stopped(VarInt),
ConnectionLost(ConnectionError),
UnknownStream,
ZeroRttRejected,
}
Expand description
Errors that arise from writing to a stream
Variants§
Stopped(VarInt)
The peer is no longer accepting data on this stream
Carries an application-defined error code.
ConnectionLost(ConnectionError)
The connection was lost
UnknownStream
The stream has already been finished or reset
ZeroRttRejected
This was a 0-RTT stream and the server rejected it
Can only occur on clients for 0-RTT streams, which can be opened using
Connecting::into_0rtt()
.
Trait Implementations§
§impl Clone for WriteError
impl Clone for WriteError
§fn clone(&self) -> WriteError
fn clone(&self) -> WriteError
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 more§impl Debug for WriteError
impl Debug for WriteError
§impl Display for WriteError
impl Display for WriteError
§impl Error for WriteError
impl Error for WriteError
§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
§impl From<ConnectionError> for WriteError
impl From<ConnectionError> for WriteError
§fn from(source: ConnectionError) -> WriteError
fn from(source: ConnectionError) -> WriteError
Converts to this type from the input type.
§impl From<WriteError> for Sender
impl From<WriteError> for Sender
§fn from(source: WriteError) -> Sender
fn from(source: WriteError) -> Sender
Converts to this type from the input type.
§impl PartialEq<WriteError> for WriteError
impl PartialEq<WriteError> for WriteError
§fn eq(&self, other: &WriteError) -> bool
fn eq(&self, other: &WriteError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for WriteError
impl StructuralEq for WriteError
impl StructuralPartialEq for WriteError
Auto Trait Implementations§
impl RefUnwindSafe for WriteError
impl Send for WriteError
impl Sync for WriteError
impl Unpin for WriteError
impl UnwindSafe for WriteError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.