[−][src]Struct srt_rs::SrtSocket
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]
&self,
local: A,
remote: B
) -> Result<(), SrtError>
pub fn connect<A: ToSocketAddrs>(&self, addrs: A) -> Result<(), SrtError>
[src]
pub fn listen(&self, backlog: i32) -> Result<(), SrtError>
[src]
impl SrtSocket
[src]
pub fn local_addr(&self) -> Result<SocketAddr, SrtError>
[src]
pub fn peer_addr(&self) -> Result<SocketAddr, SrtError>
[src]
pub fn accept(&self) -> Result<(Self, SocketAddr), SrtError>
[src]
pub fn close(self) -> Result<(), SrtError>
[src]
pub fn send(&self, buf: &[u8]) -> Result<usize, SrtError>
[src]
pub fn recv(&self, buf: &mut [u8]) -> Result<usize, SrtError>
[src]
pub fn get_sender_buffer(&self) -> Result<(usize, usize), SrtError>
[src]
pub fn get_events(&self) -> Result<SRT_EPOLL_OPT, SrtError>
[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]
&self,
per_cent: i32
) -> Result<(), SrtError>
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]
&self,
type_of_service: i32
) -> Result<(), SrtError>
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]
&self,
reduced: bool
) -> Result<(), SrtError>
pub fn set_reuse_address(&self, reuse: bool) -> Result<(), SrtError>
[src]
pub fn set_congestion_controller(
&self,
controller: SrtCongestionController
) -> Result<(), SrtError>
[src]
&self,
controller: SrtCongestionController
) -> Result<(), SrtError>
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]
&self,
transmission_type: SrtTransmissionType
) -> Result<(), SrtError>
pub fn set_timestamp_based_packet_delivery_mode(
&self,
enable: bool
) -> Result<(), SrtError>
[src]
&self,
enable: bool
) -> Result<(), SrtError>
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
Auto Trait Implementations
impl RefUnwindSafe for SrtSocket
[src]
impl Send for SrtSocket
[src]
impl Sync for SrtSocket
[src]
impl Unpin for SrtSocket
[src]
impl UnwindSafe for SrtSocket
[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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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>,