[−][src]Struct srt_rs::SrtStream
Implementations
impl SrtStream
[src]
pub fn peer_addr(&self) -> Result<SocketAddr, SrtError>
[src]
pub fn close(self) -> Result<(), SrtError>
[src]
pub fn set_time_drift_tracer(&self, enable: bool) -> Result<(), SrtError>
[src]
pub fn set_input_bandwith(&self, bytes_per_sec: i64) -> Result<(), SrtError>
[src]
pub fn set_recovery_bandwidth_overhead(
&self,
per_cent: i32
) -> Result<(), SrtError>
[src]
&self,
per_cent: i32
) -> Result<(), SrtError>
pub fn set_retransmission_algorithm(
&self,
reduced: bool
) -> Result<(), SrtError>
[src]
&self,
reduced: bool
) -> Result<(), SrtError>
pub fn set_receive_timeout(&self, msecs: i32) -> Result<(), SrtError>
[src]
pub fn set_send_timeout(&self, msecs: i32) -> Result<(), SrtError>
[src]
pub fn get_flight_flag_size(&self) -> Result<i32, SrtError>
[src]
pub fn get_input_bandwith(&self) -> Result<i64, SrtError>
[src]
pub fn get_ip_type_of_service(&self) -> Result<i32, SrtError>
[src]
pub fn get_initial_sequence_number(&self) -> Result<i32, SrtError>
[src]
pub fn get_ip_time_to_live(&self) -> Result<i32, SrtError>
[src]
pub fn get_ipv6_only(&self) -> Result<i32, SrtError>
[src]
pub fn get_km_refresh_rate(&self) -> Result<i32, SrtError>
[src]
pub fn get_km_preannounce(&self) -> Result<i32, SrtError>
[src]
pub fn get_linger(&self) -> Result<i32, SrtError>
[src]
pub fn get_max_reorder_tolerance(&self) -> Result<i32, SrtError>
[src]
pub fn get_max_bandwith(&self) -> Result<i64, SrtError>
[src]
pub fn get_mss(&self) -> Result<i32, SrtError>
[src]
pub fn get_nak_report(&self) -> Result<bool, SrtError>
[src]
pub fn get_encryption_key_length(&self) -> Result<i32, SrtError>
[src]
pub fn get_peer_latency(&self) -> Result<i32, SrtError>
[src]
pub fn get_peer_version(&self) -> Result<i32, SrtError>
[src]
pub fn get_receive_buffer(&self) -> Result<i32, SrtError>
[src]
pub fn get_receive_data(&self) -> Result<i32, SrtError>
[src]
pub fn get_receive_km_state(&self) -> Result<SrtKmState, SrtError>
[src]
pub fn get_receive_latency(&self) -> Result<i32, SrtError>
[src]
pub fn get_receive_blocking(&self) -> Result<bool, SrtError>
[src]
pub fn get_receive_timeout(&self) -> Result<i32, SrtError>
[src]
pub fn get_rendezvous(&self) -> Result<bool, SrtError>
[src]
pub fn get_reuse_address(&self) -> Result<bool, SrtError>
[src]
pub fn get_send_buffer(&self) -> Result<i32, SrtError>
[src]
pub fn get_send_data(&self) -> Result<i32, SrtError>
[src]
pub fn get_send_km_state(&self) -> Result<SrtKmState, SrtError>
[src]
pub fn get_send_blocking(&self) -> Result<bool, SrtError>
[src]
pub fn get_send_timeout(&self) -> Result<i32, SrtError>
[src]
pub fn get_socket_state(&self) -> Result<SrtSocketStatus, SrtError>
[src]
pub fn get_stream_id(&self) -> Result<String, SrtError>
[src]
pub fn get_too_late_packet_drop(&self) -> Result<bool, SrtError>
[src]
pub fn get_timestamp_based_packet_delivery_mode(&self) -> Result<bool, SrtError>
[src]
pub fn get_udp_receive_buffer(&self) -> Result<i32, SrtError>
[src]
pub fn get_udp_send_buffer(&self) -> Result<i32, SrtError>
[src]
pub fn get_srt_version(&self) -> Result<i32, SrtError>
[src]
Trait Implementations
impl Read for SrtStream
[src]
pub fn read(&mut self, buf: &mut [u8]) -> Result<usize>
[src]
pub fn read_vectored(
&mut self,
bufs: &mut [IoSliceMut<'_>]
) -> Result<usize, Error>
1.36.0[src]
&mut self,
bufs: &mut [IoSliceMut<'_>]
) -> Result<usize, Error>
pub fn is_read_vectored(&self) -> bool
[src]
pub unsafe fn initializer(&self) -> Initializer
[src]
pub fn read_to_end(&mut self, buf: &mut Vec<u8, Global>) -> Result<usize, Error>
1.0.0[src]
pub fn read_to_string(&mut self, buf: &mut String) -> Result<usize, Error>
1.0.0[src]
pub fn read_exact(&mut self, buf: &mut [u8]) -> Result<(), Error>
1.6.0[src]
pub fn by_ref(&mut self) -> &mut Self
1.0.0[src]
pub fn bytes(self) -> Bytes<Self>
1.0.0[src]
pub fn chain<R>(self, next: R) -> Chain<Self, R> where
R: Read,
1.0.0[src]
R: Read,
pub fn take(self, limit: u64) -> Take<Self>
1.0.0[src]
impl Write for SrtStream
[src]
pub fn write(&mut self, buf: &[u8]) -> Result<usize>
[src]
pub fn flush(&mut self) -> Result<()>
[src]
pub fn write_vectored(&mut self, bufs: &[IoSlice<'_>]) -> Result<usize, Error>
1.36.0[src]
pub fn is_write_vectored(&self) -> bool
[src]
pub fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
1.0.0[src]
pub fn write_all_vectored(
&mut self,
bufs: &mut [IoSlice<'_>]
) -> Result<(), Error>
[src]
&mut self,
bufs: &mut [IoSlice<'_>]
) -> Result<(), Error>
pub fn write_fmt(&mut self, fmt: Arguments<'_>) -> Result<(), Error>
1.0.0[src]
pub fn by_ref(&mut self) -> &mut Self
1.0.0[src]
Auto Trait Implementations
impl RefUnwindSafe for SrtStream
[src]
impl Send for SrtStream
[src]
impl Sync for SrtStream
[src]
impl Unpin for SrtStream
[src]
impl UnwindSafe for SrtStream
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,