pub struct ChannelSender { /* private fields */ }
Expand description
The receiver half of a channel. Only receive operations are allowed.
Implementations§
Source§impl ChannelSender
impl ChannelSender
pub fn handle(&self) -> &OwnedHandle
pub fn send<M: MessageSerialize>(&self, msg: M) -> Result<(), FtlError>
pub fn reply<M: MessageSerialize>(&self, msg: M) -> Result<(), FtlError>
pub fn send_with_buffer<M: MessageSerialize>( &self, buffer: &mut MessageBuffer, msg: M, ) -> Result<(), FtlError>
Trait Implementations§
Source§impl Clone for ChannelSender
impl Clone for ChannelSender
Source§fn clone(&self) -> ChannelSender
fn clone(&self) -> ChannelSender
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ChannelSender
impl RefUnwindSafe for ChannelSender
impl Send for ChannelSender
impl Sync for ChannelSender
impl Unpin for ChannelSender
impl UnwindSafe for ChannelSender
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