pub enum Answerer {
Caller,
Person,
Grant(String),
}Expand description
Who may answer a question a method asks mid-call — an output item that
expects a reply (BIDIR-1 mechanism). The method declares it
(#[method(answer_by = "…")], BIDIR-1 answerer).
Variants§
Caller
caller (default): the call’s own connection, as the call’s
principal — whatever kind it is.
Person
person: the call’s own connection, and its principal a person
(is_person); an agent’s answer is refused person_required.
Grant(String)
grant:<g>: any connection whose principal holds grant g on the
call’s target (asked of the gate once, per answer) — the owner
approving a step an agent’s call asks.
Implementations§
Source§impl Answerer
impl Answerer
Sourcepub fn declared(&self) -> Option<String>
pub fn declared(&self) -> Option<String>
BIDIR-8: the declaration as written (MethodSchema.answer_by):
None for the default, so a method without one is unchanged.
Trait Implementations§
impl Eq for Answerer
impl StructuralPartialEq for Answerer
Auto Trait Implementations§
impl Freeze for Answerer
impl RefUnwindSafe for Answerer
impl Send for Answerer
impl Sync for Answerer
impl Unpin for Answerer
impl UnsafeUnpin for Answerer
impl UnwindSafe for Answerer
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