[−][src]Struct rustbus::connection::ll_conn::SendConn
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]
&'a mut self,
msg: &'a MarshalledMessage
) -> Result<SendMessageContext<'a>, Error>
send a message over the conn
pub fn send_message_write_all(
&mut self,
msg: &MarshalledMessage
) -> Result<u32, Error>
[src]
&mut self,
msg: &MarshalledMessage
) -> Result<u32, Error>
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
impl RefUnwindSafe for SendConn
[src]
impl Send for SendConn
[src]
impl Sync for SendConn
[src]
impl Unpin for SendConn
[src]
impl UnwindSafe for SendConn
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,