Struct tc_scalar::ClusterRef
source · pub struct ClusterRef(/* private fields */);
Expand description
A reference to a Cluster
Implementations§
Trait Implementations§
source§impl AsType<ClusterRef> for Scalar
impl AsType<ClusterRef> for Scalar
source§fn as_type(&self) -> Option<&ClusterRef>
fn as_type(&self) -> Option<&ClusterRef>
Borrow this instance as an instance of
T
if possible.source§fn as_type_mut(&mut self) -> Option<&mut ClusterRef>
fn as_type_mut(&mut self) -> Option<&mut ClusterRef>
Borrow this instance mutably as an instance of
T
if possible.source§fn into_type(self) -> Option<ClusterRef>
fn into_type(self) -> Option<ClusterRef>
Convert this instance into an instance of
T
if possible.source§impl Clone for ClusterRef
impl Clone for ClusterRef
source§fn clone(&self) -> ClusterRef
fn clone(&self) -> ClusterRef
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ClusterRef
impl Debug for ClusterRef
source§impl Display for ClusterRef
impl Display for ClusterRef
source§impl From<ClusterRef> for Scalar
impl From<ClusterRef> for Scalar
source§fn from(t: ClusterRef) -> Self
fn from(t: ClusterRef) -> Self
Converts to this type from the input type.
source§impl From<PathBuf> for ClusterRef
impl From<PathBuf> for ClusterRef
source§impl GetSize for ClusterRef
impl GetSize for ClusterRef
source§fn get_stack_size() -> usize
fn get_stack_size() -> usize
Determines how may bytes this object occupies inside the stack. Read more
source§fn get_heap_size(&self) -> usize
fn get_heap_size(&self) -> usize
Determines how many bytes this object occupies inside the heap. Read more
source§impl<'a, D: Digest> Hash<D> for &'a ClusterRef
impl<'a, D: Digest> Hash<D> for &'a ClusterRef
source§impl PartialEq for ClusterRef
impl PartialEq for ClusterRef
source§fn eq(&self, other: &ClusterRef) -> bool
fn eq(&self, other: &ClusterRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<State> Route<State> for ClusterRefwhere
State: StateInstance,
impl<State> Route<State> for ClusterRefwhere
State: StateInstance,
impl Eq for ClusterRef
impl StructuralPartialEq for ClusterRef
Auto Trait Implementations§
impl RefUnwindSafe for ClusterRef
impl Send for ClusterRef
impl Sync for ClusterRef
impl Unpin for ClusterRef
impl UnwindSafe for ClusterRef
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<F> Match for F
impl<F> Match for F
source§fn matches<T>(&self) -> boolwhere
T: TryCastFrom<Self>,
fn matches<T>(&self) -> boolwhere
T: TryCastFrom<Self>,
Returns
true
if self
can be cast into the target type T
.§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<State, T> Public<State> for T
impl<State, T> Public<State> for T
fn get<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
txn: &'life1 <State as StateInstance>::Txn,
path: &'life2 [Id],
key: Value
) -> Pin<Box<dyn Future<Output = Result<State, TCError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
T: 'async_trait,
fn put<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
txn: &'life1 <State as StateInstance>::Txn,
path: &'life2 [Id],
key: Value,
value: State
) -> Pin<Box<dyn Future<Output = Result<(), TCError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
T: 'async_trait,
fn post<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
txn: &'life1 <State as StateInstance>::Txn,
path: &'life2 [Id],
params: Map<State>
) -> Pin<Box<dyn Future<Output = Result<State, TCError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
T: 'async_trait,
fn delete<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
txn: &'life1 <State as StateInstance>::Txn,
path: &'life2 [Id],
key: Value
) -> Pin<Box<dyn Future<Output = Result<(), TCError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
T: 'async_trait,
source§impl<F, T> TryCastFrom<F> for Twhere
T: CastFrom<F>,
impl<F, T> TryCastFrom<F> for Twhere
T: CastFrom<F>,
source§fn can_cast_from(_: &F) -> bool
fn can_cast_from(_: &F) -> bool
Test if
value
can be cast into Self
.source§fn opt_cast_from(f: F) -> Option<T>
fn opt_cast_from(f: F) -> Option<T>
Returns
Some(Self)
if the source value can be cast into Self
, otherwise None
.source§impl<F, T> TryCastInto<T> for Fwhere
T: TryCastFrom<F>,
impl<F, T> TryCastInto<T> for Fwhere
T: TryCastFrom<F>,
source§fn can_cast_into(&self) -> bool
fn can_cast_into(&self) -> bool
Test if
self
can be cast into T
.source§fn opt_cast_into(self) -> Option<T>
fn opt_cast_into(self) -> Option<T>
Returns
Some(T)
if self
can be cast into T
, otherwise None
.