Struct radius::client::Client [−][src]
pub struct Client { /* fields omitted */ }
Expand description
A basic implementation of the RADIUS client.
Implementations
impl Client
[src]
impl Client
[src]pub fn new(
connection_timeout: Option<Duration>,
socket_timeout: Option<Duration>
) -> Self
[src]
pub fn new(
connection_timeout: Option<Duration>,
socket_timeout: Option<Duration>
) -> Self
[src]A constructor for a client.
Arguments
connection_timeout
- A duration of connection timeout. If the connection is not established in time, theConnectionTimeoutError
occurs. If this value isNone
, it never timed-out.socket_timeout
- A duration of socket timeout. If the response is not returned in time, theSocketTimeoutError
occurs. If this value isNone
, it never timed-out.
pub async fn send_packet(
&self,
remote_addr: &SocketAddr,
request_packet: &Packet
) -> Result<Packet, ClientError>
[src]
pub async fn send_packet(
&self,
remote_addr: &SocketAddr,
request_packet: &Packet
) -> Result<Packet, ClientError>
[src]This method sends a packet to the destination.
This method doesn’t support auto retransmission when something failed, so if you need such a feature you have to implement that.
Auto Trait Implementations
impl RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnwindSafe for Client
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,