pub struct Closure { /* private fields */ }Implementations§
source§impl Closure
impl Closure
sourcepub fn into_inner(self) -> (Map<State>, OpDef)
pub fn into_inner(self) -> (Map<State>, OpDef)
Return the context and OpDef which define this Closure.
sourcepub fn dereference_self(self, path: &TCPathBuf) -> Self
pub fn dereference_self(self, path: &TCPathBuf) -> Self
Replace references to $self with the given path.
sourcepub fn is_inter_service_write(&self, cluster_path: &[PathSegment]) -> bool
pub fn is_inter_service_write(&self, cluster_path: &[PathSegment]) -> bool
Return true if this Closure may write to service other than where it’s defined
sourcepub fn reference_self(self, path: &TCPathBuf) -> Self
pub fn reference_self(self, path: &TCPathBuf) -> Self
Replace references to the given path with $self
Trait Implementations§
source§impl ClosureInstance<State> for Closure
impl ClosureInstance<State> for Closure
source§impl FromStream for Closure
impl FromStream for Closure
source§impl<'a> Handler<'a, State> for Closure
impl<'a> Handler<'a, State> for Closure
fn get<'b>(self: Box<Self>) -> Option<GetHandler<'a, 'b, Txn, State>>where
'b: 'a,
fn put<'b>(self: Box<Self>) -> Option<PutHandler<'a, 'b, Txn, State>>where
'b: 'a,
fn post<'b>(self: Box<Self>) -> Option<PostHandler<'a, 'b, Txn, State>>where
'b: 'a,
fn delete<'b>(self: Box<Self>) -> Option<DeleteHandler<'a, 'b, Txn>>where
'b: 'a,
source§impl<'en> IntoView<'en, CacheBlock> for Closure
impl<'en> IntoView<'en, CacheBlock> for Closure
§type Txn = Txn<State>
type Txn = Txn<State>
The type of
Transaction which this state supportssource§impl TryCastFrom<Scalar> for Closure
impl TryCastFrom<Scalar> for Closure
source§fn can_cast_from(scalar: &Scalar) -> bool
fn can_cast_from(scalar: &Scalar) -> bool
Test if
value can be cast into Self.source§fn opt_cast_from(scalar: Scalar) -> Option<Self>
fn opt_cast_from(scalar: Scalar) -> Option<Self>
Returns
Some(Self) if the source value can be cast into Self, otherwise None.source§impl TryCastFrom<State> for Closure
impl TryCastFrom<State> for Closure
source§fn can_cast_from(state: &State) -> bool
fn can_cast_from(state: &State) -> bool
Test if
value can be cast into Self.source§fn opt_cast_from(state: State) -> Option<Self>
fn opt_cast_from(state: State) -> Option<Self>
Returns
Some(Self) if the source value can be cast into Self, otherwise None.Auto Trait Implementations§
impl !RefUnwindSafe for Closure
impl Send for Closure
impl Sync for Closure
impl Unpin for Closure
impl !UnwindSafe for Closure
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<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.