pub enum FormRefusal {
Encoding(String),
Form(Refusal),
}Expand description
Why a call’s sample is not read as one of its forms: a reply error as
an error form (ErrorForm::read), or a reply as a value form
(crate::wire::read_value).
Variants§
Encoding(String)
An Encoding other than zenoh/bytes, which carries no form (core
§5.1, “Reading a value”; §5.2, “Reading an error”).
Form(Refusal)
§7.5’s first refusal for the sample.
Implementations§
Source§impl FormRefusal
impl FormRefusal
Sourcepub const fn token(&self) -> &'static str
pub const fn token(&self) -> &'static str
encoding, or the refusal’s token (Refusal::token), as
spec/conformance/errors/forms.json spells it.
Sourcepub fn reason(&self) -> String
pub fn reason(&self) -> String
Why the sample has no reading, as a rendering names it: the parse’s
refusal as Refusal::reason spells it, or the Encoding that
carries no form.
Trait Implementations§
Source§impl Clone for FormRefusal
impl Clone for FormRefusal
Source§impl Debug for FormRefusal
impl Debug for FormRefusal
Source§impl Display for FormRefusal
impl Display for FormRefusal
impl Eq for FormRefusal
Source§impl Error for FormRefusal
impl Error for FormRefusal
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Source§impl PartialEq for FormRefusal
impl PartialEq for FormRefusal
impl StructuralPartialEq for FormRefusal
Auto Trait Implementations§
impl Forget for FormRefusal
impl Freeze for FormRefusal
impl Move for FormRefusal
impl RefUnwindSafe for FormRefusal
impl Send for FormRefusalwhere
RawVecInner: Send,
impl Sync for FormRefusalwhere
RawVecInner: Sync,
impl Unpin for FormRefusal
impl UnsafeUnpin for FormRefusal
impl UnwindSafe for FormRefusalwhere
RawVecInner: 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
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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