pub struct AppGuardGrpcInterface { /* private fields */ }Implementations§
Source§impl AppGuardGrpcInterface
impl AppGuardGrpcInterface
pub async fn new(host: &str, port: u16, tls: bool) -> Result<Self, String>
pub async fn heartbeat( &mut self, app_id: String, app_secret: String, device_version: String, device_uuid: String, ) -> Result<Streaming<HeartbeatResponse>, String>
pub async fn handle_tcp_connection( &mut self, timeout: Option<u64>, tcp_connection: AppGuardTcpConnection, ) -> Result<AppGuardTcpResponse, Status>
pub async fn handle_http_request( &mut self, timeout: Option<u64>, default_policy: FirewallPolicy, http_request: AppGuardHttpRequest, ) -> Result<AppGuardResponse, Status>
pub async fn handle_http_response( &mut self, timeout: Option<u64>, default_policy: FirewallPolicy, http_response: AppGuardHttpResponse, ) -> Result<AppGuardResponse, Status>
pub async fn handle_smtp_request( &mut self, timeout: Option<u64>, default_policy: FirewallPolicy, smtp_request: AppGuardSmtpRequest, ) -> Result<AppGuardResponse, Status>
pub async fn handle_smtp_response( &mut self, timeout: Option<u64>, default_policy: FirewallPolicy, smtp_response: AppGuardSmtpResponse, ) -> Result<AppGuardResponse, Status>
Trait Implementations§
Source§impl Clone for AppGuardGrpcInterface
impl Clone for AppGuardGrpcInterface
Source§fn clone(&self) -> AppGuardGrpcInterface
fn clone(&self) -> AppGuardGrpcInterface
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Freeze for AppGuardGrpcInterface
impl !RefUnwindSafe for AppGuardGrpcInterface
impl Send for AppGuardGrpcInterface
impl Sync for AppGuardGrpcInterface
impl Unpin for AppGuardGrpcInterface
impl !UnwindSafe for AppGuardGrpcInterface
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request