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