pub struct RemoteRelay { /* private fields */ }Implementations§
Source§impl RemoteRelay
impl RemoteRelay
pub fn new(server_url: &str) -> Self
pub fn health(&self) -> Result<String, String>
pub fn register( &self, agent_id: &str, session_id: &str, pid: u32, ) -> Result<AgentRegistration, String>
pub fn unregister(&self, session_id: &str) -> Result<(), String>
pub fn agents(&self) -> Result<Vec<AgentRegistration>, String>
pub fn send( &self, from_session: &str, from_agent: &str, to_session: Option<&str>, content: &str, ) -> Result<Message, String>
pub fn inbox( &self, session_id: &str, limit: usize, ) -> Result<Vec<Message>, String>
pub fn unread_count(&self, session_id: &str) -> Result<u64, String>
Auto Trait Implementations§
impl Freeze for RemoteRelay
impl RefUnwindSafe for RemoteRelay
impl Send for RemoteRelay
impl Sync for RemoteRelay
impl Unpin for RemoteRelay
impl UnsafeUnpin for RemoteRelay
impl UnwindSafe for RemoteRelay
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