pub struct GatewayClient { /* private fields */ }Available on crate feature
gateway only.Expand description
Gateway client for syncing with synheart-core-gateway.
Implementations§
Source§impl GatewayClient
impl GatewayClient
Sourcepub fn new(config: GatewayConfig) -> Self
pub fn new(config: GatewayConfig) -> Self
Create a new gateway client.
Sourcepub fn from_runtime() -> Result<Self, GatewayError>
pub fn from_runtime() -> Result<Self, GatewayError>
Create a new gateway client from runtime directory configuration.
Sourcepub async fn test_connection(&self) -> Result<bool, GatewayError>
pub async fn test_connection(&self) -> Result<bool, GatewayError>
Test connection to the gateway.
Sourcepub async fn sync_snapshots(
&self,
snapshots: &[HsiSnapshot],
session_id: &str,
) -> Result<GatewayResponse, GatewayError>
pub async fn sync_snapshots( &self, snapshots: &[HsiSnapshot], session_id: &str, ) -> Result<GatewayResponse, GatewayError>
Sync HSI snapshots to the gateway.
Auto Trait Implementations§
impl Freeze for GatewayClient
impl !RefUnwindSafe for GatewayClient
impl Send for GatewayClient
impl Sync for GatewayClient
impl Unpin for GatewayClient
impl !UnwindSafe for GatewayClient
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