pub enum GetRefusal {
Encoding(String),
Form(Refusal),
}Expand description
Why a state GET’s payload carries no held stamp (core 0.110 §7.5): its
Encoding (step 2), or the parse’s first refusal (step 3). Either way
its owner answers the GET as it answers one with no payload (§4.2): a
state GET has no error form.
Variants§
Encoding(String)
Any Encoding but exactly zenoh/bytes, a schema suffix on it
included: no held stamp, whatever the bytes.
Form(Refusal)
§7.5’s first refusal of the payload: sample_kind, tag, short
or trailing.
Implementations§
Source§impl GetRefusal
impl GetRefusal
Sourcepub const fn token(&self) -> &'static str
pub const fn token(&self) -> &'static str
encoding, or the parse’s token (Refusal::token), as
spec/conformance/envelope/held.json’s gets spell it.
Trait Implementations§
Source§impl Clone for GetRefusal
impl Clone for GetRefusal
Source§impl Debug for GetRefusal
impl Debug for GetRefusal
Source§impl Display for GetRefusal
impl Display for GetRefusal
impl Eq for GetRefusal
Source§impl Error for GetRefusal
impl Error for GetRefusal
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 GetRefusal
impl PartialEq for GetRefusal
impl StructuralPartialEq for GetRefusal
Auto Trait Implementations§
impl Forget for GetRefusal
impl Freeze for GetRefusal
impl Move for GetRefusal
impl RefUnwindSafe for GetRefusal
impl Send for GetRefusalwhere
RawVecInner: Send,
impl Sync for GetRefusalwhere
RawVecInner: Sync,
impl Unpin for GetRefusal
impl UnsafeUnpin for GetRefusal
impl UnwindSafe for GetRefusalwhere
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