pub struct ChannelWriter(/* private fields */);
Expand description
A write-only handle to a socket.
Implementations§
Source§impl ChannelWriter
impl ChannelWriter
Sourcepub fn write(&self, bytes: &[u8], handles: Vec<Handle>) -> Result<(), Error>
pub fn write(&self, bytes: &[u8], handles: Vec<Handle>) -> Result<(), Error>
Writes a message into the channel.
Sourcepub fn fdomain_write(
&self,
bytes: &[u8],
handles: Vec<Handle>,
) -> impl Future<Output = Result<(), Error>> + '_
pub fn fdomain_write( &self, bytes: &[u8], handles: Vec<Handle>, ) -> impl Future<Output = Result<(), Error>> + '_
Writes a message into the channel. Returns a future that will allow you to wait for the write to move across the FDomain connection and return with the result of the actual write call on the target.
Sourcepub fn fdomain_write_etc<'b>(
&self,
bytes: &[u8],
handles: Vec<HandleOp<'b>>,
) -> impl Future<Output = Result<(), Error>> + 'b
pub fn fdomain_write_etc<'b>( &self, bytes: &[u8], handles: Vec<HandleOp<'b>>, ) -> impl Future<Output = Result<(), Error>> + 'b
Writes a message into the channel.
Sourcepub fn as_channel(&self) -> &Channel
pub fn as_channel(&self) -> &Channel
Get a reference to the inner channel.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ChannelWriter
impl RefUnwindSafe for ChannelWriter
impl Send for ChannelWriter
impl Sync for ChannelWriter
impl Unpin for ChannelWriter
impl UnwindSafe for ChannelWriter
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