pub trait ScheduleNamespaceSource: Send + Sync {
// Required method
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;
}Expand description
Durable source of schedule→namespace ownership facts.
The production implementation projects ownership from the schedule coordinator’s recorded event history; tests substitute a static fixture to prove adapter-boundary denials without an engine.
Required Methods§
Sourcefn 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,
Returns the namespace recorded at schedule creation, or None when
the schedule is unknown or its creation config recorded no namespace
attribute.
§Errors
Returns ServerError when the underlying ownership data cannot be read.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".