pub enum DelegateMode {
Wait,
Background {
notify_parent: bool,
},
TeamMember {
seat: TeamSeat,
permission_mode: Option<PermissionMode>,
lifetime: MemberLifetime,
},
Host {
notify_parent: bool,
},
Hook {
judged_session: String,
},
}Expand description
Matched exhaustively by the one dispatch in agents, across crates, so a
new mode cannot compile without its rules.
Variants§
Wait
Run it and wait for its answer.
Background
A task of the parent session, started at once.
TeamMember
Fields
§
permission_mode: Option<PermissionMode>Held to the parent’s mode: it can make the member stricter, never
freer. None keeps the parent’s.
§
lifetime: MemberLifetimeHost
What a host asked for, as a task of the parent session.
Hook
The judge for an "agent" hook on an event of judged_session.
Auto Trait Implementations§
impl !RefUnwindSafe for DelegateMode
impl !UnwindSafe for DelegateMode
impl Forget for DelegateMode
impl Freeze for DelegateMode
impl Move for DelegateMode
impl Send for DelegateMode
impl Sync for DelegateMode
impl Unpin for DelegateMode
impl UnsafeUnpin for DelegateMode
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