pub struct Shop;Expand description
The reference domain every interpretation is held to.
Trait Implementations§
impl Copy for Shop
Source§impl ShopAlg for Shop
impl ShopAlg for Shop
Auto Trait Implementations§
impl Freeze for Shop
impl RefUnwindSafe for Shop
impl Send for Shop
impl Sync for Shop
impl Unpin for Shop
impl UnsafeUnpin for Shop
impl UnwindSafe for Shop
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<This> HttpProgramExt<This> for This
impl<This> HttpProgramExt<This> for This
Source§fn compile_http<Program>(
&self,
program: Program,
) -> <Program as HttpProgramAlg<This>>::Routewhere
Program: HttpProgramAlg<This>,
fn compile_http<Program>(
&self,
program: Program,
) -> <Program as HttpProgramAlg<This>>::Routewhere
Program: HttpProgramAlg<This>,
Compiles a named HTTP program with this interpreter.
Source§impl<This> LifecycleApiExt<This> for This
impl<This> LifecycleApiExt<This> for This
Source§fn lifecycle_api<Alg>(&self) -> LifecycleApiProgram<Alg>
fn lifecycle_api<Alg>(&self) -> LifecycleApiProgram<Alg>
Declares one endpoint answering at once and one taking longer than any drain.
Source§impl<This> MultipartApiExt<This> for This
impl<This> MultipartApiExt<This> for This
Source§fn multipart_api<Alg>(&self) -> MultipartApiProgram<Alg>where
Alg: UploadAlg,
fn multipart_api<Alg>(&self) -> MultipartApiProgram<Alg>where
Alg: UploadAlg,
Declares one endpoint reading a body that arrives as parts.
Source§impl<This> ShapeProgramExt<This> for This
impl<This> ShapeProgramExt<This> for This
Source§fn compile_shape<Program>(
&self,
program: Program,
) -> <Program as ShapeProgramAlg<This>>::Tywhere
Program: ShapeProgramAlg<This>,
fn compile_shape<Program>(
&self,
program: Program,
) -> <Program as ShapeProgramAlg<This>>::Tywhere
Program: ShapeProgramAlg<This>,
Folds a declaration with this interpretation.
Source§impl<This> ShopApiExt<This> for This
impl<This> ShopApiExt<This> for This
Source§impl<This> ShopOperationExt<This> for Thiswhere
This: ShopAlg,
impl<This> ShopOperationExt<This> for Thiswhere
This: ShopAlg,
Source§async fn shop_item(&self, id: u32) -> Result<u32, Error>
async fn shop_item(&self, id: u32) -> Result<u32, Error>
Returns one identified reading, or why it could not be read.
Source§async fn shop_items(&self) -> Vec<u32>
async fn shop_items(&self) -> Vec<u32>
Returns every reading.
Source§async fn shop_fill(&self, amount: Amount) -> u32
async fn shop_fill(&self, amount: Amount) -> u32
Records one reading sent as a form and returns it.
Source§async fn shop_note(&self, note: String) -> String
async fn shop_note(&self, note: String) -> String
Notes what was sent and says what it made of it.
Source§async fn shop_clear(&self)
async fn shop_clear(&self)
Forgets every reading.
Source§async fn shop_agent(&self, agent: Agent) -> String
async fn shop_agent(&self, agent: Agent) -> String
Returns what the caller says they are.
Source§impl<This> SlowOperationExt<This> for Thiswhere
This: SlowAlg,
impl<This> SlowOperationExt<This> for Thiswhere
This: SlowAlg,
Source§async fn shop_slow(&self) -> String
async fn shop_slow(&self) -> String
Answers slowly enough that the caller is still waiting when the server closes.
Takes longer to answer than any interpretation waits before closing anyway, so a caller asking for this holds a connection the server is still producing an answer on. It exists for the lifecycle scenario, which needs a connection that outlives a close.
Source§async fn shop_pause(&self) -> String
async fn shop_pause(&self) -> String
Answers while the server is closing, rather than after it has closed.
Takes less time to answer than any interpretation waits before closing anyway, so a caller asking for this is answered by a server that is already shutting down. It is the other half of what the lifecycle scenario needs: a request in flight that a close does not cut off.
Source§impl<This> StreamApiExt<This> for This
impl<This> StreamApiExt<This> for This
Source§fn stream_api<Alg>(&self) -> StreamApiProgram<Alg>where
Alg: TicksAlg,
fn stream_api<Alg>(&self) -> StreamApiProgram<Alg>where
Alg: TicksAlg,
Declares one endpoint answering with a body produced over time.
Source§impl<This> TicksOperationExt<This> for Thiswhere
This: TicksAlg,
impl<This> TicksOperationExt<This> for Thiswhere
This: TicksAlg,
Source§async fn shop_ticks(&self) -> Ticks
async fn shop_ticks(&self) -> Ticks
Returns what the domain has to say, a piece at a time.
Source§impl<This> UploadOperationExt<This> for Thiswhere
This: UploadAlg,
impl<This> UploadOperationExt<This> for Thiswhere
This: UploadAlg,
Source§async fn shop_upload(&self, upload: Upload) -> String
async fn shop_upload(&self, upload: Upload) -> String
Returns what the domain makes of a body sent as parts.
Source§impl<This> WideApiExt<This> for This
impl<This> WideApiExt<This> for This
Source§impl<This> WideOperationExt<This> for Thiswhere
This: WideAlg,
impl<This> WideOperationExt<This> for Thiswhere
This: WideAlg,
Source§async fn wide_all(
&self,
first: String,
second: String,
third: String,
fourth: String,
fifth: String,
sixth: String,
seventh: String,
eighth: String,
ninth: String,
tenth: String,
eleventh: String,
twelfth: String,
thirteenth: String,
fourteenth: String,
fifteenth: String,
sixteenth: String,
) -> String
async fn wide_all( &self, first: String, second: String, third: String, fourth: String, fifth: String, sixth: String, seventh: String, eighth: String, ninth: String, tenth: String, eleventh: String, twelfth: String, thirteenth: String, fourteenth: String, fifteenth: String, sixteenth: String, ) -> String
Returns what the domain makes of sixteen stated arguments.