pub struct StaticScheduleNamespaces { /* private fields */ }Expand description
Static schedule→namespace fixture for adapter-boundary tests and alternate wiring that must authorize without an engine handle.
Implementations§
Source§impl StaticScheduleNamespaces
impl StaticScheduleNamespaces
Sourcepub fn record(
&self,
schedule_id: ScheduleId,
namespace: &str,
) -> Result<(), ServerError>
pub fn record( &self, schedule_id: ScheduleId, namespace: &str, ) -> Result<(), ServerError>
Record that a schedule is owned by a namespace.
§Errors
Returns ServerError::LockPoisoned if the fixture lock was poisoned.
Trait Implementations§
Source§impl Clone for StaticScheduleNamespaces
impl Clone for StaticScheduleNamespaces
Source§fn clone(&self) -> StaticScheduleNamespaces
fn clone(&self) -> StaticScheduleNamespaces
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for StaticScheduleNamespaces
impl Default for StaticScheduleNamespaces
Source§fn default() -> StaticScheduleNamespaces
fn default() -> StaticScheduleNamespaces
Returns the “default value” for a type. Read more
Source§impl ScheduleNamespaceSource for StaticScheduleNamespaces
impl ScheduleNamespaceSource for StaticScheduleNamespaces
Source§fn schedule_namespace<'life0, 'life1, 'async_trait>(
&'life0 self,
schedule_id: &'life1 ScheduleId,
) -> Pin<Box<dyn Future<Output = Result<Option<String>, ServerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn schedule_namespace<'life0, 'life1, 'async_trait>(
&'life0 self,
schedule_id: &'life1 ScheduleId,
) -> Pin<Box<dyn Future<Output = Result<Option<String>, ServerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl Freeze for StaticScheduleNamespaces
impl RefUnwindSafe for StaticScheduleNamespaces
impl Send for StaticScheduleNamespaces
impl Sync for StaticScheduleNamespaces
impl Unpin for StaticScheduleNamespaces
impl UnsafeUnpin for StaticScheduleNamespaces
impl UnwindSafe for StaticScheduleNamespaces
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request