pub struct Conn { /* private fields */ }
Expand description
A synchronous non-blocking connection to DBus session.
Most people will want to use RpcConn
. This is a low-level
struct used by RpcConn
to read and write messages to/from the DBus
socket. It does minimal processing of data and provides no Async interfaces.
§Notes
- If you are interested in synchronous interface for DBus, the
rustbus
is a better solution.
Implementations§
Source§impl Conn
impl Conn
pub async fn connect_to_addr<P: AsRef<Path>, S: ToSocketAddrs, B: AsRef<[u8]>>( addr: &DBusAddr<P, S, B>, with_fd: bool, ) -> Result<Self>
pub async fn connect_to_path<P: AsRef<Path>>( p: P, with_fd: bool, ) -> Result<Self>
pub fn get_next_message(&mut self) -> Result<MarshalledMessage>
pub fn finish_sending_next(&mut self) -> Result<u64>
pub fn write_next_message( &mut self, msg: &MarshalledMessage, ) -> Result<(Option<u64>, Option<u32>)>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Conn
impl RefUnwindSafe for Conn
impl Send for Conn
impl Sync for Conn
impl Unpin for Conn
impl UnwindSafe for Conn
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