pub enum ErrorReading<'a> {
Form(ErrorForm<'a>),
Transport(Option<Refusal>),
}Expand description
What a call’s reply error reads as, by its Encoding first (core §5.2,
“Reading an error”): read_error.
Variants§
Form(ErrorForm<'a>)
Under zenoh/bytes, an error form the parse accepts: the owner’s.
Transport(Option<Refusal>)
The transport’s: under zenoh/bytes, bytes the parse refuses (its
refusal), such as a router’s Timeout (sample_kind); under any
other Encoding, None, such as a querier’s own Timeout under
zenoh/string, or an earlier core’s envelope under
application/json. A caller reads either as silence (§5.1,
“Retries”).
Trait Implementations§
Source§impl<'a> Clone for ErrorReading<'a>
impl<'a> Clone for ErrorReading<'a>
Source§impl<'a> Debug for ErrorReading<'a>
impl<'a> Debug for ErrorReading<'a>
Source§impl<'a> PartialEq for ErrorReading<'a>
impl<'a> PartialEq for ErrorReading<'a>
impl<'a> StructuralPartialEq for ErrorReading<'a>
Auto Trait Implementations§
impl<'a> Forget for ErrorReading<'a>
impl<'a> Freeze for ErrorReading<'a>
impl<'a> Move for ErrorReading<'a>
impl<'a> RefUnwindSafe for ErrorReading<'a>
impl<'a> Send for ErrorReading<'a>
impl<'a> Sync for ErrorReading<'a>
impl<'a> Unpin for ErrorReading<'a>
impl<'a> UnsafeUnpin for ErrorReading<'a>
impl<'a> UnwindSafe for ErrorReading<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more