pub struct Upward<'a> { /* private fields */ }Expand description
The standard upward interface (D10), every child’s: Parent::host.
Implementations§
Source§impl Upward<'_>
impl Upward<'_>
Sourcepub async fn schema(&self) -> Result<Value, UpwardError>
pub async fn schema(&self) -> Result<Value, UpwardError>
host.schema: the service’s description, as the caller may see it.
Sourcepub async fn whoami(&self) -> Result<Value, UpwardError>
pub async fn whoami(&self) -> Result<Value, UpwardError>
host.whoami: { for, child, service } — whom the call being served
is for (null: no one signed in).
Sourcepub async fn log(&self, level: &str, message: &str) -> Result<(), UpwardError>
pub async fn log(&self, level: &str, message: &str) -> Result<(), UpwardError>
host.log: a line in the service’s log at level (error, warn,
info, debug, trace).
Sourcepub async fn notify(&self, topic: &str, data: Value) -> Result<u64, UpwardError>
pub async fn notify(&self, topic: &str, data: Value) -> Result<u64, UpwardError>
host.notify: tell the service something; answers how many in the
service were listening (DynamicHub::notices).
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Upward<'a>
impl<'a> !UnwindSafe for Upward<'a>
impl<'a> Forget for Upward<'a>
impl<'a> Freeze for Upward<'a>
impl<'a> Send for Upward<'a>
impl<'a> Sync for Upward<'a>
impl<'a> Unpin for Upward<'a>
impl<'a> UnsafeUnpin for Upward<'a>
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