[][src]Struct rustbus::connection::ll_conn::SendConn

pub struct SendConn { /* fields omitted */ }

A lowlevel abstraction over the raw unix socket

Implementations

impl SendConn[src]

pub fn alloc_serial(&mut self) -> u32[src]

get the next new serial

pub fn send_message<'a>(
    &'a mut self,
    msg: &'a MarshalledMessage
) -> Result<SendMessageContext<'a>, Error>
[src]

send a message over the conn

pub fn send_message_write_all(
    &mut self,
    msg: &MarshalledMessage
) -> Result<u32, Error>
[src]

send a message and block until all bytes have been sent. Returns the serial of the message to match the response.

Trait Implementations

impl AsRawFd for SendConn[src]

pub fn as_raw_fd(&self) -> RawFd[src]

Reading or writing to the RawFd may result in undefined behavior and break the Conn.

impl Debug for SendConn[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.