pub struct WebRtcPlayEndpoint {
pub id: String,
pub src: String,
pub on_start: String,
pub on_stop: String,
pub force_relay: bool,
}Expand description
Media element playing media data for a client via WebRTC.
Fields§
§id: StringID of this WebRtcPlayEndpoint.
src: String/ Source to play media data from.
on_start: StringCallback firing when a client starts playing media data from the source.
on_stop: StringCallback firing when a client stops playing media data from the source.
force_relay: boolIndicator whether to relay all media data through a TURN server forcibly.
Trait Implementations§
Source§impl Clone for WebRtcPlayEndpoint
impl Clone for WebRtcPlayEndpoint
Source§fn clone(&self) -> WebRtcPlayEndpoint
fn clone(&self) -> WebRtcPlayEndpoint
Returns a duplicate 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 WebRtcPlayEndpoint
impl Debug for WebRtcPlayEndpoint
Source§impl Default for WebRtcPlayEndpoint
impl Default for WebRtcPlayEndpoint
Source§impl From<WebRtcPlay> for WebRtcPlayEndpoint
impl From<WebRtcPlay> for WebRtcPlayEndpoint
Source§fn from(play: WebRtcPlay) -> Self
fn from(play: WebRtcPlay) -> Self
Converts to this type from the input type.
Source§impl Message for WebRtcPlayEndpoint
impl Message for WebRtcPlayEndpoint
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for WebRtcPlayEndpoint
impl PartialEq for WebRtcPlayEndpoint
Source§impl TryFrom<WebRtcPlayEndpoint> for WebRtcPlay
impl TryFrom<WebRtcPlayEndpoint> for WebRtcPlay
Source§type Error = ProtobufError
type Error = ProtobufError
The type returned in the event of a conversion error.
impl StructuralPartialEq for WebRtcPlayEndpoint
Auto Trait Implementations§
impl Freeze for WebRtcPlayEndpoint
impl RefUnwindSafe for WebRtcPlayEndpoint
impl Send for WebRtcPlayEndpoint
impl Sync for WebRtcPlayEndpoint
impl Unpin for WebRtcPlayEndpoint
impl UnwindSafe for WebRtcPlayEndpoint
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request