pub enum RefTarget {
Object(Vec<u8>),
Symbolic(String),
}Expand description
The typed ref rejection, re-exported so a consumer of this crate reaches it
without also naming the contract crate. RefRejection::of(&err) is the only
sanctioned way to ask whether a ref write lost a race — never a message.
One ref target, backend-neutrally: an object, or another ref.
Named separately from RefRow because this is what was observed at one
instant during a failed compare-and-swap, not a row of the namespace.
Variants§
Trait Implementations§
impl Eq for RefTarget
impl StructuralPartialEq for RefTarget
Auto Trait Implementations§
impl Freeze for RefTarget
impl RefUnwindSafe for RefTarget
impl Send for RefTarget
impl Sync for RefTarget
impl Unpin for RefTarget
impl UnsafeUnpin for RefTarget
impl UnwindSafe for RefTarget
Blanket Implementations§
impl<T> Allocation for T
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.