pub enum BluetoothStream {
Bluez(Pin<Box<Stream>>),
}Expand description
An active stream for bluetooth communications
Variants§
Implementations§
Source§impl BluetoothStream
impl BluetoothStream
Sourcepub fn supports_async_read(self: Pin<&mut Self>) -> Option<&mut dyn AsyncRead>
pub fn supports_async_read(self: Pin<&mut Self>) -> Option<&mut dyn AsyncRead>
Used to check to see if the object supports async read, and then use the functionality
Sourcepub fn supports_async_write(self: Pin<&mut Self>) -> Option<&mut dyn AsyncWrite>
pub fn supports_async_write(self: Pin<&mut Self>) -> Option<&mut dyn AsyncWrite>
Used to check to see if the object supports async write, and then use the functionality
Sourcepub fn supports_sync_read(self: Pin<&mut Self>) -> Option<&mut dyn Read>
pub fn supports_sync_read(self: Pin<&mut Self>) -> Option<&mut dyn Read>
Used to try to use synchronous read functionality
Sourcepub fn supports_sync_write(self: Pin<&mut Self>) -> Option<&mut dyn Write>
pub fn supports_sync_write(self: Pin<&mut Self>) -> Option<&mut dyn Write>
Used to try to use synchronous write functionality
Auto Trait Implementations§
impl Freeze for BluetoothStream
impl !RefUnwindSafe for BluetoothStream
impl Send for BluetoothStream
impl Sync for BluetoothStream
impl Unpin for BluetoothStream
impl UnsafeUnpin for BluetoothStream
impl !UnwindSafe for BluetoothStream
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