pub struct AppGuardTcpConnection {
pub token: String,
pub source_ip: Option<String>,
pub source_port: Option<u32>,
pub destination_ip: Option<String>,
pub destination_port: Option<u32>,
pub protocol: String,
}Fields§
§token: String§source_ip: Option<String>§source_port: Option<u32>§destination_ip: Option<String>§destination_port: Option<u32>§protocol: StringImplementations§
Source§impl AppGuardTcpConnection
impl AppGuardTcpConnection
Sourcepub fn source_ip(&self) -> &str
pub fn source_ip(&self) -> &str
Returns the value of source_ip, or the default value if source_ip is unset.
Sourcepub fn source_port(&self) -> u32
pub fn source_port(&self) -> u32
Returns the value of source_port, or the default value if source_port is unset.
Sourcepub fn destination_ip(&self) -> &str
pub fn destination_ip(&self) -> &str
Returns the value of destination_ip, or the default value if destination_ip is unset.
Sourcepub fn destination_port(&self) -> u32
pub fn destination_port(&self) -> u32
Returns the value of destination_port, or the default value if destination_port is unset.
Trait Implementations§
Source§impl Clone for AppGuardTcpConnection
impl Clone for AppGuardTcpConnection
Source§fn clone(&self) -> AppGuardTcpConnection
fn clone(&self) -> AppGuardTcpConnection
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 moreSource§impl Debug for AppGuardTcpConnection
impl Debug for AppGuardTcpConnection
Source§impl Default for AppGuardTcpConnection
impl Default for AppGuardTcpConnection
Source§impl Message for AppGuardTcpConnection
impl Message for AppGuardTcpConnection
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for AppGuardTcpConnection
impl PartialEq for AppGuardTcpConnection
impl StructuralPartialEq for AppGuardTcpConnection
Auto Trait Implementations§
impl Freeze for AppGuardTcpConnection
impl RefUnwindSafe for AppGuardTcpConnection
impl Send for AppGuardTcpConnection
impl Sync for AppGuardTcpConnection
impl Unpin for AppGuardTcpConnection
impl UnwindSafe for AppGuardTcpConnection
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