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 control_channel( &self, receiver: Receiver<ClientMessage>, ) -> Result<Streaming<ServerMessage>, String>
pub async fn handle_logs(&mut self, message: Logs) -> Result<(), String>
pub async fn handle_tcp_connection( &mut self, timeout: u32, tcp_connection: AppGuardTcpConnection, ) -> Result<AppGuardTcpResponse, Status>
pub async fn handle_http_request( &mut self, timeout: u32, default_policy: FirewallPolicy, http_request: AppGuardHttpRequest, ) -> Result<AppGuardResponse, Status>
pub async fn handle_http_response( &mut self, timeout: u32, default_policy: FirewallPolicy, http_response: AppGuardHttpResponse, ) -> Result<AppGuardResponse, Status>
pub async fn handle_smtp_request( &mut self, timeout: u32, default_policy: FirewallPolicy, smtp_request: AppGuardSmtpRequest, ) -> Result<AppGuardResponse, Status>
pub async fn handle_smtp_response( &mut self, timeout: u32, default_policy: FirewallPolicy, smtp_response: AppGuardSmtpResponse, ) -> Result<AppGuardResponse, Status>
pub async fn firewall_defaults_request( &mut self, token: String, ) -> Result<FirewallDefaults, Status>
Trait Implementations§
Source§impl Clone for AppGuardGrpcInterface
impl Clone for AppGuardGrpcInterface
Source§fn clone(&self) -> AppGuardGrpcInterface
fn clone(&self) -> AppGuardGrpcInterface
Returns a duplicate 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