Struct rustbus::connection::ll_conn::SendConn
source · pub struct SendConn { /* private fields */ }
Expand description
A lowlevel abstraction over the raw unix socket
Implementations§
source§impl SendConn
impl SendConn
sourcepub fn alloc_serial(&mut self) -> u32
pub fn alloc_serial(&mut self) -> u32
get the next new serial
sourcepub fn send_message<'a>(
&'a mut self,
msg: &'a MarshalledMessage
) -> Result<SendMessageContext<'a>, Error>
pub fn send_message<'a>( &'a mut self, msg: &'a MarshalledMessage ) -> Result<SendMessageContext<'a>, Error>
send a message over the conn
sourcepub fn send_message_write_all(
&mut self,
msg: &MarshalledMessage
) -> Result<u32, Error>
pub fn send_message_write_all( &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§
Auto Trait Implementations§
impl RefUnwindSafe for SendConn
impl Send for SendConn
impl Sync for SendConn
impl Unpin for SendConn
impl UnwindSafe for SendConn
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