pub enum CommandType<'a> {
NetConnection(NetConnectionCommand<'a>),
NetStream(NetStreamCommand<'a>),
OnStatus(OnStatus<'a>),
Unknown(UnknownCommand<'a>),
}
Expand description
This enum wraps the NetConnectionCommand
, NetStreamCommand
and OnStatus
enums.
Variants§
NetConnection(NetConnectionCommand<'a>)
NetConnection command
NetStream(NetStreamCommand<'a>)
NetStream command
OnStatus(OnStatus<'a>)
onStatus command
Unknown(UnknownCommand<'a>)
Any unknown command
e.g. FFmpeg sends some commands that don’t appear in any spec, so we need to handle them.
Trait Implementations§
Source§impl<'a> Clone for CommandType<'a>
impl<'a> Clone for CommandType<'a>
Source§fn clone(&self) -> CommandType<'a>
fn clone(&self) -> CommandType<'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 moreAuto Trait Implementations§
impl<'a> !Freeze for CommandType<'a>
impl<'a> RefUnwindSafe for CommandType<'a>
impl<'a> Send for CommandType<'a>
impl<'a> Sync for CommandType<'a>
impl<'a> Unpin for CommandType<'a>
impl<'a> UnwindSafe for CommandType<'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