pub struct TCReplica { /* private fields */ }Expand description
***** TCReplica *****
A replica represents an instance of a user’s task data, providing an easy interface for querying and modifying that data.
§Error Handling
When a tc_replica_.. function that returns a TCResult returns TC_RESULT_ERROR, then
tc_replica_error will return the error message.
§Safety
The *TCReplica returned from tc_replica_new… functions is owned by the caller and
must later be freed to avoid a memory leak.
Any function taking a *TCReplica requires:
- the pointer must not be NUL;
- the pointer must be one previously returned from a tc_… function;
- the memory referenced by the pointer must never be modified by C code; and
- except for
tc_replica_free, ownership of a*TCReplicaremains with the caller.
Once passed to tc_replica_free, a *TCReplica becomes invalid and must not be used again.
TCReplicas are not threadsafe.
typedef struct TCReplica TCReplica;Trait Implementations§
Auto Trait Implementations§
impl Freeze for TCReplica
impl !RefUnwindSafe for TCReplica
impl !Send for TCReplica
impl !Sync for TCReplica
impl Unpin for TCReplica
impl !UnwindSafe for TCReplica
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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