pub struct MemberHandle { /* private fields */ }Expand description
Clone-cheap, capability-bearing handle for interacting with one mob member.
This is the target 0.5 API surface for message/turn submission. The mob handle remains orchestration/control-plane oriented, while member-directed delivery goes through this narrower capability.
Implementations§
Source§impl MemberHandle
impl MemberHandle
Sourcepub fn meerkat_id(&self) -> &MeerkatId
pub fn meerkat_id(&self) -> &MeerkatId
Target member id for this capability.
Sourcepub async fn send(
&self,
content: impl Into<ContentInput>,
handling_mode: HandlingMode,
) -> Result<MemberDeliveryReceipt, MobError>
pub async fn send( &self, content: impl Into<ContentInput>, handling_mode: HandlingMode, ) -> Result<MemberDeliveryReceipt, MobError>
Submit external work to this member through the canonical runtime path.
Sourcepub async fn send_with_render_metadata(
&self,
content: impl Into<ContentInput>,
handling_mode: HandlingMode,
render_metadata: Option<RenderMetadata>,
) -> Result<MemberDeliveryReceipt, MobError>
pub async fn send_with_render_metadata( &self, content: impl Into<ContentInput>, handling_mode: HandlingMode, render_metadata: Option<RenderMetadata>, ) -> Result<MemberDeliveryReceipt, MobError>
Submit external work with explicit normalized render metadata.
Sourcepub async fn internal_turn(
&self,
content: impl Into<ContentInput>,
) -> Result<MemberDeliveryReceipt, MobError>
pub async fn internal_turn( &self, content: impl Into<ContentInput>, ) -> Result<MemberDeliveryReceipt, MobError>
Submit internal work to this member without external addressability checks.
Sourcepub async fn current_session_id(&self) -> Result<Option<SessionId>, MobError>
pub async fn current_session_id(&self) -> Result<Option<SessionId>, MobError>
Current session ID for this member, if a session bridge exists.
Sourcepub async fn session_ref(&self) -> Result<Option<MemberSessionRef>, MobError>
pub async fn session_ref(&self) -> Result<Option<MemberSessionRef>, MobError>
Session reference for this member, if a session bridge exists.
Sourcepub async fn status(&self) -> Result<MobMemberSnapshot, MobError>
pub async fn status(&self) -> Result<MobMemberSnapshot, MobError>
Get a point-in-time execution snapshot for this member.
Sourcepub async fn events(&self) -> Result<EventStream, MobError>
pub async fn events(&self) -> Result<EventStream, MobError>
Subscribe to this member’s agent events.
Trait Implementations§
Source§impl Clone for MemberHandle
impl Clone for MemberHandle
Source§fn clone(&self) -> MemberHandle
fn clone(&self) -> MemberHandle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MemberHandle
impl !RefUnwindSafe for MemberHandle
impl Send for MemberHandle
impl Sync for MemberHandle
impl Unpin for MemberHandle
impl UnsafeUnpin for MemberHandle
impl !UnwindSafe for MemberHandle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more