[][src]Struct bluetooth_serial_port_async::socket::BtSocket

pub struct BtSocket { /* fields omitted */ }

Linux (Bluez) socket, created with AF_BLUETOOTH

Implementations

impl BtSocket[src]

pub fn new(proto: BtProtocol) -> Result<BtSocket, BtError>[src]

pub fn connect(&mut self, addr: &BtAddr) -> Result<BtSocketConnect<'_>, BtError>[src]

Initiate connection

pub fn get_fd(&self) -> i32[src]

pub fn get_stream_std(&self) -> StdUnixStream[src]

pub fn get_stream(&self) -> UnixStream[src]

Trait Implementations

impl Debug for BtSocket[src]

impl Evented for BtSocket[src]

Auto Trait Implementations

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.