Struct spacetimedb::ScheduleToken
source · pub struct ScheduleToken<R = AnyReducer> { /* private fields */ }
Expand description
An identifier for the schedule to call reducer R
.
Implementations§
source§impl<R> ScheduleToken<R>
impl<R> ScheduleToken<R>
sourcepub fn erase(self) -> ScheduleToken
pub fn erase(self) -> ScheduleToken
Erase the R
type parameter from the token.
In other words, forget what reducer this is for.
Trait Implementations§
source§impl<R> Clone for ScheduleToken<R>
impl<R> Clone for ScheduleToken<R>
source§impl<'de, R> Deserialize<'de> for ScheduleToken<R>
impl<'de, R> Deserialize<'de> for ScheduleToken<R>
source§fn deserialize<D: Deserializer<'de>>(de: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(de: D) -> Result<Self, D::Error>
Deserialize this value from the given
deserializer
.source§impl<R> Serialize for ScheduleToken<R>
impl<R> Serialize for ScheduleToken<R>
source§impl<R> SpacetimeType for ScheduleToken<R>
impl<R> SpacetimeType for ScheduleToken<R>
source§fn make_type<S: TypespaceBuilder>(_ts: &mut S) -> AlgebraicType
fn make_type<S: TypespaceBuilder>(_ts: &mut S) -> AlgebraicType
Returns an
AlgebraicType
representing the type for Self
in SATS
and in the typing context in typespace
.impl<R> Copy for ScheduleToken<R>
Auto Trait Implementations§
impl<R> Freeze for ScheduleToken<R>
impl<R> RefUnwindSafe for ScheduleToken<R>where
R: RefUnwindSafe,
impl<R> Send for ScheduleToken<R>where
R: Send,
impl<R> Sync for ScheduleToken<R>where
R: Sync,
impl<R> Unpin for ScheduleToken<R>where
R: Unpin,
impl<R> UnwindSafe for ScheduleToken<R>where
R: 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
Mutably borrows from an owned value. Read more
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 moresource§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> Satn for T
impl<T> Satn for T
source§fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>
fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Formats the value using the SATN data format into the formatter
f
.source§fn fmt_psql(&self, f: &mut Formatter<'_>) -> Result<(), Error>
fn fmt_psql(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Formats the value using the postgres SATN data format into the formatter
f
.source§fn to_satn(&self) -> String
fn to_satn(&self) -> String
Formats the value using the SATN data format into the returned
String
.source§fn to_satn_pretty(&self) -> String
fn to_satn_pretty(&self) -> String
Pretty prints the value using the SATN data format into the returned
String
.