Struct wireguard_uapi::xplatform::Client[][src]

pub struct Client<P: AsRef<Path>> { /* fields omitted */ }

Implementations

impl<P: AsRef<Path>> Client<P>[src]

pub fn create(path: P) -> Self[src]

A path to the unix socket file. Ex: /var/run/wireguard/utun0.sock

pub fn get(&self) -> Result<Device, GetDeviceError>[src]

pub fn set(&self, set_request: Device) -> Result<(), SetDeviceError>[src]

Auto Trait Implementations

impl<P> RefUnwindSafe for Client<P> where
    P: RefUnwindSafe

impl<P> Send for Client<P> where
    P: Send

impl<P> Sync for Client<P> where
    P: Sync

impl<P> Unpin for Client<P> where
    P: Unpin

impl<P> UnwindSafe for Client<P> where
    P: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.