pub enum ClientType {
Publisher,
Subscriber,
}
Expand description
The pattern to distinguish whether client requests are publishers or subscribers.
We are required to note that RTMP is one of Publish-Subscribe model. Notably, RTMP servers are requried to distinguish whether they are publishers or subscribers by states of data sent.
Currently, this is used by servers when distinguished them successfully.
Variants§
Trait Implementations§
Source§impl Clone for ClientType
impl Clone for ClientType
Source§fn clone(&self) -> ClientType
fn clone(&self) -> ClientType
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 Debug for ClientType
impl Debug for ClientType
Source§impl Default for ClientType
impl Default for ClientType
Source§fn default() -> ClientType
fn default() -> ClientType
Returns the “default value” for a type. Read more
Source§impl PartialEq for ClientType
impl PartialEq for ClientType
impl Copy for ClientType
impl Eq for ClientType
impl StructuralPartialEq for ClientType
Auto Trait Implementations§
impl Freeze for ClientType
impl RefUnwindSafe for ClientType
impl Send for ClientType
impl Sync for ClientType
impl Unpin for ClientType
impl UnwindSafe for ClientType
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