pub struct Asked<'a> {
pub key: &'a str,
pub held: Option<Stamp>,
}Expand description
A reader’s state GET, as it reads a held stamp among its arrivals (core
§4.2, “A held stamp in answer”): its selector, and the held stamp it
carried, None for a GET with no payload.
Fields§
§key: &'a strThe GET’s selector, as its reader’s session spells the keys it
hears: base-relative in a namespace, a wire key in none. It may
carry parameters after a ?, which are not part of its key
(selector_key).
held: Option<Stamp>The held stamp the GET carried.
Implementations§
Source§impl Asked<'_>
impl Asked<'_>
Sourcepub fn is_conditional(&self) -> bool
pub fn is_conditional(&self) -> bool
Whether the GET is a conditional read as its reader made it: it carried a held stamp on one concrete key.
Sourcepub fn read(&self, by_get: bool, key: &str, stamp: Stamp) -> HeldRead
pub fn read(&self, by_get: bool, key: &str, stamp: Stamp) -> HeldRead
A held stamp that arrived on key carrying stamp, by this GET
(by_get) or on a subscription: the owner’s answer only as a reply
to the GET that carried the same one, on that GET’s one concrete
key, its selector’s key expression (selector_key). The same one
has the same run, in width and value, and the same seq. A consumer
or a tool MUST NOT read any other as unchanged.
Trait Implementations§
impl<'a> Copy for Asked<'a>
impl<'a> Eq for Asked<'a>
impl<'a> StructuralPartialEq for Asked<'a>
Auto Trait Implementations§
impl<'a> Forget for Asked<'a>
impl<'a> Freeze for Asked<'a>
impl<'a> Move for Asked<'a>
impl<'a> RefUnwindSafe for Asked<'a>
impl<'a> Send for Asked<'a>
impl<'a> Sync for Asked<'a>
impl<'a> Unpin for Asked<'a>
impl<'a> UnsafeUnpin for Asked<'a>where
&'a str: UnsafeUnpin,
impl<'a> UnwindSafe for Asked<'a>where
&'a str: 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
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> ⓘ
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> ⓘ
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