pub struct TrackWriter {
pub info: Arc<Track>,
/* private fields */
}
Expand description
Creates new streams for a track.
Fields§
§info: Arc<Track>
Implementations§
Source§impl TrackWriter
impl TrackWriter
pub fn stream(self, priority: u8) -> Result<StreamWriter, ServeError>
pub fn groups(self) -> Result<GroupsWriter, ServeError>
pub fn objects(self) -> Result<ObjectsWriter, ServeError>
pub fn datagrams(self) -> Result<DatagramsWriter, ServeError>
Sourcepub fn close(self, err: ServeError) -> Result<(), ServeError>
pub fn close(self, err: ServeError) -> Result<(), ServeError>
Close the track with an error.
Trait Implementations§
Source§impl Deref for TrackWriter
impl Deref for TrackWriter
Source§impl From<TrackWriter> for TrackWriterMode
impl From<TrackWriter> for TrackWriterMode
Source§fn from(writer: TrackWriter) -> Self
fn from(writer: TrackWriter) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TrackWriter
impl RefUnwindSafe for TrackWriter
impl Send for TrackWriter
impl Sync for TrackWriter
impl Unpin for TrackWriter
impl UnwindSafe for TrackWriter
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