Struct livekit_protocol::livekit::IngressInfo
source · pub struct IngressInfo {Show 13 fields
pub ingress_id: String,
pub name: String,
pub stream_key: String,
pub url: String,
pub input_type: i32,
pub bypass_transcoding: bool,
pub audio: Option<IngressAudioOptions>,
pub video: Option<IngressVideoOptions>,
pub room_name: String,
pub participant_identity: String,
pub participant_name: String,
pub reusable: bool,
pub state: Option<IngressState>,
}
Fields§
§ingress_id: String
§name: String
§stream_key: String
§url: String
§input_type: i32
for RTMP input, it’ll be a rtmp:// URL for FILE input, it’ll be a http:// URL for SRT input, it’ll be a srt:// URL
bypass_transcoding: bool
§audio: Option<IngressAudioOptions>
§video: Option<IngressVideoOptions>
§room_name: String
§participant_identity: String
§participant_name: String
§reusable: bool
§state: Option<IngressState>
Description of error/stream non compliance and debug info for publisher otherwise (received bitrate, resolution, bandwidth)
Implementations§
source§impl IngressInfo
impl IngressInfo
sourcepub fn input_type(&self) -> IngressInput
pub fn input_type(&self) -> IngressInput
Returns the enum value of input_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_input_type(&mut self, value: IngressInput)
pub fn set_input_type(&mut self, value: IngressInput)
Sets input_type
to the provided enum value.
Trait Implementations§
source§impl Clone for IngressInfo
impl Clone for IngressInfo
source§fn clone(&self) -> IngressInfo
fn clone(&self) -> IngressInfo
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 IngressInfo
impl Debug for IngressInfo
source§impl Default for IngressInfo
impl Default for IngressInfo
source§impl Message for IngressInfo
impl Message for IngressInfo
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where B: BufMut, Self: Sized,
Encodes the message to a buffer. Read more
source§fn encode_to_vec(&self) -> Vec<u8, Global>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8, Global>where Self: Sized,
Encodes the message to a newly allocated buffer.
source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where B: BufMut, Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>where Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
source§fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where B: Buf, Self: Default,
Decodes an instance of the message from a buffer. Read more
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where B: Buf, Self: Default,
Decodes a length-delimited instance of the message from the buffer.
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where B: Buf, Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self
. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where B: Buf, Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.source§impl PartialEq<IngressInfo> for IngressInfo
impl PartialEq<IngressInfo> for IngressInfo
source§fn eq(&self, other: &IngressInfo) -> bool
fn eq(&self, other: &IngressInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for IngressInfo
Auto Trait Implementations§
impl RefUnwindSafe for IngressInfo
impl Send for IngressInfo
impl Sync for IngressInfo
impl Unpin for IngressInfo
impl UnwindSafe for IngressInfo
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