pub struct CommandControlAgent { /* private fields */ }Implementations§
Source§impl CommandControlAgent
impl CommandControlAgent
pub fn new(endpoint_properties: Box<dyn FeagiClientRequesterProperties>) -> Self
pub fn registration_status(&self) -> &AgentRegistrationStatus
pub fn registered_endpoint_target(&mut self) -> TransportProtocolEndpoint
pub fn request_connect(&mut self) -> Result<(), FeagiAgentError>
pub fn request_registration( &mut self, agent_descriptor: AgentDescriptor, auth_token: AuthToken, requested_capabilities: Vec<AgentCapabilities>, ) -> Result<(), FeagiAgentError>
Sourcepub fn request_deregistration(
&mut self,
reason: Option<String>,
) -> Result<(), FeagiAgentError>
pub fn request_deregistration( &mut self, reason: Option<String>, ) -> Result<(), FeagiAgentError>
Request voluntary deregistration for the given session.
The optional reason string is forwarded for observability and does not
alter deregistration behavior on the server.
Sourcepub fn send_heartbeat(&mut self) -> Result<(), FeagiAgentError>
pub fn send_heartbeat(&mut self) -> Result<(), FeagiAgentError>
Send a heartbeat over the command/control channel for the provided session.
This is the deterministic, tick-driven heartbeat primitive used by higher-level client loops.
Sourcepub fn request_disconnect(&mut self) -> Result<(), FeagiAgentError>
pub fn request_disconnect(&mut self) -> Result<(), FeagiAgentError>
Request transport disconnect for command/control requester.
This is a best-effort disconnect primitive used by higher-level shutdown orchestration to ensure sockets are torn down deterministically.
pub fn poll_for_messages( &mut self, ) -> Result<(&FeagiEndpointState, Option<FeagiMessage>), FeagiAgentError>
pub fn send_message( &mut self, message: FeagiMessage, increment_value: u16, ) -> Result<(), FeagiAgentError>
Auto Trait Implementations§
impl Freeze for CommandControlAgent
impl !RefUnwindSafe for CommandControlAgent
impl Send for CommandControlAgent
impl !Sync for CommandControlAgent
impl Unpin for CommandControlAgent
impl UnsafeUnpin for CommandControlAgent
impl !UnwindSafe for CommandControlAgent
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> 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