[][src]Struct srt_rs::SrtSocket

pub struct SrtSocket {
    pub id: i32,
}

Fields

id: i32

Implementations

impl SrtSocket[src]

pub fn new() -> Result<Self, SrtError>[src]

pub fn bind<A: ToSocketAddrs>(self, addrs: A) -> Result<Self, SrtError>[src]

pub fn rendezvous<A: ToSocketAddrs, B: ToSocketAddrs>(
    &self,
    local: A,
    remote: B
) -> Result<(), SrtError>
[src]

pub fn connect<A: ToSocketAddrs>(&self, addrs: A) -> Result<(), SrtError>[src]

pub fn listen(&self, backlog: i32) -> Result<(), SrtError>[src]

impl SrtSocket[src]

impl SrtSocket[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_reject_reason(&self) -> SrtRejectReason[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]

impl SrtSocket[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]

pub fn set_receive_timeout(&self, msecs: i32) -> Result<(), SrtError>[src]

pub fn set_send_blocking(&self, blocking: bool) -> Result<(), SrtError>[src]

pub fn set_send_timeout(&self, msecs: i32) -> Result<(), SrtError>[src]

impl SrtSocket[src]

pub fn set_bind_to_device(&self, device: String) -> Result<(), SrtError>[src]

pub fn set_connection_timeout(&self, msecs: i32) -> Result<(), SrtError>[src]

pub fn set_flight_flag_size(&self, packets: i32) -> Result<(), SrtError>[src]

pub fn set_ip_type_of_service(
    &self,
    type_of_service: i32
) -> Result<(), SrtError>
[src]

pub fn set_ipv4_time_to_live(&self, hops: i32) -> Result<(), SrtError>[src]

pub fn set_ipv6_only(&self, value: i32) -> Result<(), SrtError>[src]

pub fn set_km_refresh_rate(&self, packets: i32) -> Result<(), SrtError>[src]

pub fn set_km_preannounce(&self, packets: i32) -> Result<(), SrtError>[src]

pub fn set_linger(&self, secs: i32) -> Result<(), SrtError>[src]

pub fn set_max_reorder_tolerance(&self, packets: i32) -> Result<(), SrtError>[src]

pub fn set_max_bandwith(&self, bytes_per_sec: i64) -> Result<(), SrtError>[src]

pub fn set_message_api(&self, enable: bool) -> Result<(), SrtError>[src]

pub fn set_min_version(&self, version: i32) -> Result<(), SrtError>[src]

pub fn set_mss(&self, bytes: i32) -> Result<(), SrtError>[src]

pub fn set_nak_report(&self, enable: bool) -> Result<(), SrtError>[src]

pub fn set_packet_filter(&self, filter: &str) -> Result<(), SrtError>[src]

pub fn set_passphrase(&self, passphrase: &str) -> Result<(), SrtError>[src]

pub fn set_payload_size(&self, bytes: i32) -> Result<(), SrtError>[src]

pub fn set_encryption_key_length(&self, bytes: i32) -> Result<(), SrtError>[src]

pub fn set_peer_idle_timeout(&self, msecs: i32) -> Result<(), SrtError>[src]

pub fn set_peer_latency(&self, msecs: i32) -> Result<(), SrtError>[src]

pub fn set_receive_buffer(&self, bytes: i32) -> Result<(), SrtError>[src]

pub fn set_receive_latency(&self, msecs: i32) -> Result<(), SrtError>[src]

pub fn set_receive_blocking(&self, blocking: bool) -> Result<(), SrtError>[src]

pub fn set_rendezvous(&self, rendezvous: bool) -> Result<(), SrtError>[src]

pub fn set_retransmission_algorithm(
    &self,
    reduced: bool
) -> Result<(), SrtError>
[src]

pub fn set_reuse_address(&self, reuse: bool) -> Result<(), SrtError>[src]

pub fn set_congestion_controller(
    &self,
    controller: SrtCongestionController
) -> Result<(), SrtError>
[src]

pub fn set_send_buffer(&self, bytes: i32) -> Result<(), SrtError>[src]

pub fn set_send_drop_delay(&self, msecs: i32) -> Result<(), SrtError>[src]

pub fn set_stream_id(&self, id: &str) -> Result<(), SrtError>[src]

pub fn set_enforced_encryption(&self, enforced: bool) -> Result<(), SrtError>[src]

pub fn set_too_late_packet_drop(&self, enable: bool) -> Result<(), SrtError>[src]

pub fn set_transmission_type(
    &self,
    transmission_type: SrtTransmissionType
) -> Result<(), SrtError>
[src]

pub fn set_timestamp_based_packet_delivery_mode(
    &self,
    enable: bool
) -> Result<(), SrtError>
[src]

pub fn set_udp_send_buffer(&self, bytes: i32) -> Result<(), SrtError>[src]

pub fn set_udp_receive_buffer(&self, bytes: i32) -> Result<(), SrtError>[src]

Trait Implementations

impl Clone for SrtSocket[src]

impl Copy for SrtSocket[src]

impl Debug for SrtSocket[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.