pub struct AcceptToken(pub u64);Expand description
Opaque marker the host uses to find the right pending_*
table for a stateful AcceptAction. v1: a u64 that the host
generates per-LSP-request; the LSP cache keys on the same
token. Plugins use the same scheme for their own pending
tables.
Tuple Fields§
§0: u64Implementations§
Trait Implementations§
Source§impl Clone for AcceptToken
impl Clone for AcceptToken
Source§fn clone(&self) -> AcceptToken
fn clone(&self) -> AcceptToken
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AcceptToken
Source§impl Debug for AcceptToken
impl Debug for AcceptToken
impl Eq for AcceptToken
Source§impl Hash for AcceptToken
impl Hash for AcceptToken
Source§impl Ord for AcceptToken
impl Ord for AcceptToken
Source§fn cmp(&self, other: &AcceptToken) -> Ordering
fn cmp(&self, other: &AcceptToken) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AcceptToken
impl PartialEq for AcceptToken
Source§impl PartialOrd for AcceptToken
impl PartialOrd for AcceptToken
impl StructuralPartialEq for AcceptToken
Auto Trait Implementations§
impl Freeze for AcceptToken
impl RefUnwindSafe for AcceptToken
impl Send for AcceptToken
impl Sync for AcceptToken
impl Unpin for AcceptToken
impl UnsafeUnpin for AcceptToken
impl UnwindSafe for AcceptToken
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.