pub struct MulticastTextChatWrapper<M: MacBackend> { /* private fields */ }Implementations§
Source§impl<M: MacBackend> MulticastTextChatWrapper<M>
impl<M: MacBackend> MulticastTextChatWrapper<M>
pub fn new(channel: BoundChannel<M>) -> Self
pub fn from_channel(channel: &BoundChannel<M>) -> Self
pub fn bound_channel(&self) -> &BoundChannel<M>
pub async fn send_message( &self, message: &TextMessage<'_>, options: &SendOptions, ) -> Result<SendProgressTicket, TextSendError<NodeError<M>>>
pub async fn send_owned_message( &self, message: &OwnedTextMessage, options: &SendOptions, ) -> Result<SendProgressTicket, TextSendError<NodeError<M>>>
pub async fn send_text( &self, body: &str, options: &SendOptions, ) -> Result<SendProgressTicket, TextSendError<NodeError<M>>>
pub fn on_text<F>(&self, handler: F) -> Subscription
pub fn on_text_with_diagnostics<F, D>(
&self,
handler: F,
diagnostics: D,
) -> Subscriptionwhere
F: FnMut(&ReceivedPacketRef<'_>, TextMessage<'_>) + 'static,
D: FnMut(&ReceivedPacketRef<'_>, TextReceiveIssue) + 'static,
Trait Implementations§
Source§impl<M: Clone + MacBackend> Clone for MulticastTextChatWrapper<M>
impl<M: Clone + MacBackend> Clone for MulticastTextChatWrapper<M>
Source§fn clone(&self) -> MulticastTextChatWrapper<M>
fn clone(&self) -> MulticastTextChatWrapper<M>
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<M> Freeze for MulticastTextChatWrapper<M>where
M: Freeze,
impl<M> !RefUnwindSafe for MulticastTextChatWrapper<M>
impl<M> !Send for MulticastTextChatWrapper<M>
impl<M> !Sync for MulticastTextChatWrapper<M>
impl<M> Unpin for MulticastTextChatWrapper<M>where
M: Unpin,
impl<M> !UnwindSafe for MulticastTextChatWrapper<M>
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)