pub struct Reviews { /* private fields */ }Expand description
The embedder’s own host module: the pull requests the application holds, and the decisions it has been told about.
Implementations§
Source§impl Reviews
impl Reviews
Sourcepub fn new(open: BTreeMap<String, PullRequest>) -> Reviews
pub fn new(open: BTreeMap<String, PullRequest>) -> Reviews
A host serving open, keyed by request identifier.
Sourcepub fn with_schema(self, schema: ModuleSchema) -> Reviews
pub fn with_schema(self, schema: ModuleSchema) -> Reviews
The same host, declaring schema instead of REVIEWS.
Sourcepub fn with_fault(self, fault: Fault) -> Reviews
pub fn with_fault(self, fault: Fault) -> Reviews
The same host, made to misbehave in the one named way.
Trait Implementations§
Source§impl HostApi for Reviews
impl HostApi for Reviews
Source§fn module_schema(&self) -> ModuleSchema
fn module_schema(&self) -> ModuleSchema
The whole of what this module declares about itself: the name Cove
source uses, the capability a host must grant for it, the operations
it exposes, the types it declares, and the kinds of resource it can
open. Read more
Source§fn call(&self, op: &str, args: Vec<Value>) -> Result<Value, RuntimeError>
fn call(&self, op: &str, args: Vec<Value>) -> Result<Value, RuntimeError>
Invokes one operation.
Source§fn call_with(
&self,
op: &str,
args: Vec<Value>,
back: &mut dyn Reentry,
) -> Result<Value, RuntimeError>
fn call_with( &self, op: &str, args: Vec<Value>, back: &mut dyn Reentry, ) -> Result<Value, RuntimeError>
Invokes one operation. Read more
Source§fn call_resource(
&self,
handle: &ResourceHandle,
op: &str,
args: Vec<Value>,
back: &mut dyn Reentry,
) -> Result<Value, RuntimeError>
fn call_resource( &self, handle: &ResourceHandle, op: &str, args: Vec<Value>, back: &mut dyn Reentry, ) -> Result<Value, RuntimeError>
Invokes one operation on a handle this module issued. Read more
Auto Trait Implementations§
impl !Freeze for Reviews
impl RefUnwindSafe for Reviews
impl Send for Reviews
impl Sync for Reviews
impl Unpin for Reviews
impl UnsafeUnpin for Reviews
impl UnwindSafe for Reviews
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