pub struct Writer { /* private fields */ }Expand description
This member’s chat broadcast, and the task that writes and expires it.
Built by room.publish::<Writer>(NAME), which creates the track before
the room announces the broadcast, or taken from Chat::split.
Implementations§
Trait Implementations§
Source§impl TryFrom<Producer> for Writer
impl TryFrom<Producer> for Writer
Source§fn try_from(producer: Producer) -> Result<Self, Self::Error>
fn try_from(producer: Producer) -> Result<Self, Self::Error>
Creates the chat track on producer and starts writing it.
Room::publish builds a writer this way before it announces the
broadcast, so no member finds the broadcast without its track.
§Errors
Fails with moq_net::Error::Duplicate if producer has a chat
track already.
§Panics
Panics when called outside a Tokio runtime.
Auto Trait Implementations§
impl Freeze for Writer
impl RefUnwindSafe for Writer
impl Send for Writer
impl Sync for Writer
impl Unpin for Writer
impl UnsafeUnpin for Writer
impl UnwindSafe for Writer
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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