pub struct SetSupport<C> { /* private fields */ }Expand description
Conditional support for one Foo/set method, attached with
Dispatcher::attach_set_support.
Carries the data type (the dispatcher reads preconditions through the
registered "<type>/get"), its property names (Foo/get alone does not
reject unknown names, so the dispatcher checks pointers against them)
and the backend that opens the method’s SetScope.
Implementations§
Trait Implementations§
Source§impl<C> Clone for SetSupport<C>
impl<C> Clone for SetSupport<C>
Auto Trait Implementations§
impl<C> !RefUnwindSafe for SetSupport<C>
impl<C> !UnwindSafe for SetSupport<C>
impl<C> Forget for SetSupport<C>
impl<C> Freeze for SetSupport<C>where
Arc<dyn DynConditional<C>>: Freeze,
fn(Prepared<C>, Arc<dyn JmapHandler<C>>, CallContext<C>) -> Pin<Box<dyn Future<Output = Result<HandlerOutput, JmapError>> + Send>>: Freeze,
impl<C> Move for SetSupport<C>
impl<C> Send for SetSupport<C>where
Arc<dyn DynConditional<C>>: Send,
fn(Prepared<C>, Arc<dyn JmapHandler<C>>, CallContext<C>) -> Pin<Box<dyn Future<Output = Result<HandlerOutput, JmapError>> + Send>>: Send,
impl<C> Sync for SetSupport<C>where
Arc<dyn DynConditional<C>>: Sync,
fn(Prepared<C>, Arc<dyn JmapHandler<C>>, CallContext<C>) -> Pin<Box<dyn Future<Output = Result<HandlerOutput, JmapError>> + Send>>: Sync,
impl<C> Unpin for SetSupport<C>where
Arc<dyn DynConditional<C>>: Unpin,
fn(Prepared<C>, Arc<dyn JmapHandler<C>>, CallContext<C>) -> Pin<Box<dyn Future<Output = Result<HandlerOutput, JmapError>> + Send>>: Unpin,
impl<C> UnsafeUnpin for SetSupport<C>where
Arc<dyn DynConditional<C>>: UnsafeUnpin,
fn(Prepared<C>, Arc<dyn JmapHandler<C>>, CallContext<C>) -> Pin<Box<dyn Future<Output = Result<HandlerOutput, JmapError>> + Send>>: UnsafeUnpin,
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