pub struct ConnectorAgent { /* private fields */ }Implementations§
Source§impl ConnectorAgent
impl ConnectorAgent
pub fn new_empty(agent_id: AgentDescriptor) -> Self
pub fn new_from_device_registration_json( agent_id: AgentDescriptor, json: Value, ) -> Result<Self, FeagiDataError>
pub fn get_sensor_cache(&self) -> MutexGuard<'_, SensorDeviceCache>
pub fn get_sensor_cache_ref(&self) -> Arc<Mutex<SensorDeviceCache>>
pub fn get_motor_cache(&self) -> MutexGuard<'_, MotorDeviceCache>
pub fn get_motor_cache_ref(&self) -> Arc<Mutex<MotorDeviceCache>>
pub fn get_device_registration_json(&self) -> Result<Value, FeagiDataError>
pub fn register_feedback( &mut self, feedback: FeedBackRegistration, target: FeedbackRegistrationTargets, ) -> Result<(), FeagiDataError>
pub fn set_device_registrations_from_json( &mut self, json: Value, ) -> Result<(), FeagiDataError>
pub fn send_sensor_data(&self) -> Result<(), FeagiDataError>
Trait Implementations§
Source§impl FeagiAgent for ConnectorAgent
impl FeagiAgent for ConnectorAgent
fn agent_id(&self) -> &AgentDescriptor
fn current_connection_state(&self) -> &AgentConnectionState
fn agent_capabilities(&self) -> &[AgentCapabilities]
fn connect_to_feagi( &mut self, host: String, requester_properties: Box<dyn FeagiClientRequesterProperties>, agent_descriptor: AgentDescriptor, ) -> Result<(), FeagiDataError>
fn disconnect(&mut self)
Auto Trait Implementations§
impl Freeze for ConnectorAgent
impl !RefUnwindSafe for ConnectorAgent
impl Send for ConnectorAgent
impl !Sync for ConnectorAgent
impl Unpin for ConnectorAgent
impl !UnwindSafe for ConnectorAgent
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