pub enum NetStreamCommandPublishPublishingType<'a> {
Live,
Record,
Append,
Unknown(StringCow<'a>),
}
Expand description
Type of publishing.
Appears as part of the NetStreamCommand::Publish
command.
Variants§
Live
Citing the legacy RTMP spec, page 46: Live data is published without recording it in a file.
Record
Citing the legacy RTMP spec, page 46:
The stream is published and the data is recorded to a new file. The file is stored on the server in a subdirectory within the directory that contains the server application. If the file already exists, it is overwritten.
Append
Citing the legacy RTMP spec, page 46: The stream is published and the data is appended to a file. If no file is found, it is created.
Unknown(StringCow<'a>)
Any other value.
Trait Implementations§
Source§impl<'a> Clone for NetStreamCommandPublishPublishingType<'a>
impl<'a> Clone for NetStreamCommandPublishPublishingType<'a>
Source§fn clone(&self) -> NetStreamCommandPublishPublishingType<'a>
fn clone(&self) -> NetStreamCommandPublishPublishingType<'a>
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 moreSource§impl<'a> Debug for NetStreamCommandPublishPublishingType<'a>
impl<'a> Debug for NetStreamCommandPublishPublishingType<'a>
Source§impl<'de: 'a, 'a> Deserialize<'de> for NetStreamCommandPublishPublishingType<'a>
impl<'de: 'a, 'a> Deserialize<'de> for NetStreamCommandPublishPublishingType<'a>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'a> PartialEq for NetStreamCommandPublishPublishingType<'a>
impl<'a> PartialEq for NetStreamCommandPublishPublishingType<'a>
Source§fn eq(&self, other: &NetStreamCommandPublishPublishingType<'a>) -> bool
fn eq(&self, other: &NetStreamCommandPublishPublishingType<'a>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl<'a> Serialize for NetStreamCommandPublishPublishingType<'a>
impl<'a> Serialize for NetStreamCommandPublishPublishingType<'a>
impl<'a> Eq for NetStreamCommandPublishPublishingType<'a>
impl<'a> StructuralPartialEq for NetStreamCommandPublishPublishingType<'a>
Auto Trait Implementations§
impl<'a> !Freeze for NetStreamCommandPublishPublishingType<'a>
impl<'a> RefUnwindSafe for NetStreamCommandPublishPublishingType<'a>
impl<'a> Send for NetStreamCommandPublishPublishingType<'a>
impl<'a> Sync for NetStreamCommandPublishPublishingType<'a>
impl<'a> Unpin for NetStreamCommandPublishPublishingType<'a>
impl<'a> UnwindSafe for NetStreamCommandPublishPublishingType<'a>
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