pub struct MulticastBuilder<'a, I, C: 'a + ?Sized, M = TextKind> { /* private fields */ }Implementations§
Source§impl<'a, I, C, M> MulticastBuilder<'a, I, C, M>
impl<'a, I, C, M> MulticastBuilder<'a, I, C, M>
pub fn with_ttl(self, ttl: Duration) -> Self
pub fn set_text(self, text: impl Into<String>) -> Self
Sourcepub fn send(self) -> <Self as IntoFuture>::IntoFuturewhere
Self: IntoFuture,
pub fn send(self) -> <Self as IntoFuture>::IntoFuturewhere
Self: IntoFuture,
A syntactic sugar to avoid double awaits(.await.await -> .await.send().await) in
certain use-cases
Source§impl<'a, I, C> MulticastBuilder<'a, I, C, TextKind>
impl<'a, I, C> MulticastBuilder<'a, I, C, TextKind>
pub fn with_image( self, img: Image, ) -> MulticastBuilder<'a, I, C, PreviewableKind>
pub fn with_video( self, vid: Video, ) -> MulticastBuilder<'a, I, C, PreviewableKind>
pub fn with_link( self, link: Link, ) -> MulticastBuilder<'a, I, C, PreviewableKind>
pub fn attach(self, img: CryptoFile) -> MulticastBuilder<'a, I, C, RichKind>
pub fn report( self, reason: ReportReason, ) -> MulticastBuilder<'a, I, C, RichKind>
pub fn link_chat(self, chat: Chat) -> MulticastBuilder<'a, I, C, RichKind>
Source§impl<'a, I, C> MulticastBuilder<'a, I, C, RichKind>
impl<'a, I, C> MulticastBuilder<'a, I, C, RichKind>
pub fn set_file_source(self, source: CryptoFile) -> Self
Source§impl<'a, I, C> MulticastBuilder<'a, I, C, PreviewableKind>
impl<'a, I, C> MulticastBuilder<'a, I, C, PreviewableKind>
Sourcepub fn with_preview(self, preview: ImagePreview) -> Self
pub fn with_preview(self, preview: ImagePreview) -> Self
Override the current image preview with a custom one
Trait Implementations§
Source§impl<'a, I, C, M> IntoFuture for MulticastBuilder<'a, I, C, M>where
I: IntoIterator<Item = ChatId>,
C: 'static + ClientApi,
C::Error: 'static + Send,
M: SimplySendable,
impl<'a, I, C, M> IntoFuture for MulticastBuilder<'a, I, C, M>where
I: IntoIterator<Item = ChatId>,
C: 'static + ClientApi,
C::Error: 'static + Send,
M: SimplySendable,
Source§type Output = Vec<Result<Arc<NewChatItemsResponse>, <C as ClientApi>::Error>>
type Output = Vec<Result<Arc<NewChatItemsResponse>, <C as ClientApi>::Error>>
The output that the future will produce on completion.
Source§type IntoFuture = Pin<Box<dyn Future<Output = <MulticastBuilder<'a, I, C, M> as IntoFuture>::Output> + Send + 'a>>
type IntoFuture = Pin<Box<dyn Future<Output = <MulticastBuilder<'a, I, C, M> as IntoFuture>::Output> + Send + 'a>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Source§impl<'a, I, C> IntoFuture for MulticastBuilder<'a, I, C, PreviewableKind>
impl<'a, I, C> IntoFuture for MulticastBuilder<'a, I, C, PreviewableKind>
Source§type Output = Vec<Result<Arc<NewChatItemsResponse>, <C as ClientApi>::Error>>
type Output = Vec<Result<Arc<NewChatItemsResponse>, <C as ClientApi>::Error>>
The output that the future will produce on completion.
Source§type IntoFuture = Pin<Box<dyn Future<Output = <MulticastBuilder<'a, I, C, PreviewableKind> as IntoFuture>::Output> + Send + 'a>>
type IntoFuture = Pin<Box<dyn Future<Output = <MulticastBuilder<'a, I, C, PreviewableKind> as IntoFuture>::Output> + Send + 'a>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl<'a, I, C, M> Freeze for MulticastBuilder<'a, I, C, M>
impl<'a, I, C, M> RefUnwindSafe for MulticastBuilder<'a, I, C, M>
impl<'a, I, C, M> Send for MulticastBuilder<'a, I, C, M>
impl<'a, I, C, M> Sync for MulticastBuilder<'a, I, C, M>
impl<'a, I, C, M> Unpin for MulticastBuilder<'a, I, C, M>
impl<'a, I, C, M> UnsafeUnpin for MulticastBuilder<'a, I, C, M>
impl<'a, I, C, M> UnwindSafe for MulticastBuilder<'a, I, C, M>
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