Struct srt_protocol::options::CallerOptions
source · pub struct CallerOptions {
pub remote: SocketAddress,
pub stream_id: Option<StreamId>,
pub socket: SocketOptions,
}
Fields§
§remote: SocketAddress
§stream_id: Option<StreamId>
§socket: SocketOptions
Implementations§
source§impl CallerOptions
impl CallerOptions
pub fn new( remote: impl TryInto<SocketAddress>, stream_id: Option<&str> ) -> Result<Valid<Self>, OptionsError>
pub fn with( remote: impl TryInto<SocketAddress>, stream_id: Option<&str>, socket: SocketOptions ) -> Result<Valid<CallerOptions>, OptionsError>
Trait Implementations§
source§impl Clone for CallerOptions
impl Clone for CallerOptions
source§fn clone(&self) -> CallerOptions
fn clone(&self) -> CallerOptions
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 CompositeValidation for CallerOptions
impl CompositeValidation for CallerOptions
fn is_valid_composite(&self) -> Result<(), <Self as Validation>::Error>
source§impl Debug for CallerOptions
impl Debug for CallerOptions
source§impl OptionsOf<Connect> for CallerOptions
impl OptionsOf<Connect> for CallerOptions
fn set_options(&mut self, value: Connect)
source§impl OptionsOf<Encryption> for CallerOptions
impl OptionsOf<Encryption> for CallerOptions
fn set_options(&mut self, value: Encryption)
source§impl OptionsOf<Receiver> for CallerOptions
impl OptionsOf<Receiver> for CallerOptions
fn set_options(&mut self, value: Receiver)
source§impl OptionsOf<Sender> for CallerOptions
impl OptionsOf<Sender> for CallerOptions
fn set_options(&mut self, value: Sender)
source§impl OptionsOf<Session> for CallerOptions
impl OptionsOf<Session> for CallerOptions
fn set_options(&mut self, value: Session)
source§impl OptionsOf<SocketOptions> for CallerOptions
impl OptionsOf<SocketOptions> for CallerOptions
fn set_options(&mut self, value: SocketOptions)
source§impl PartialEq<CallerOptions> for CallerOptions
impl PartialEq<CallerOptions> for CallerOptions
source§fn eq(&self, other: &CallerOptions) -> bool
fn eq(&self, other: &CallerOptions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Validation for CallerOptions
impl Validation for CallerOptions
impl Eq for CallerOptions
impl StructuralEq for CallerOptions
impl StructuralPartialEq for CallerOptions
Auto Trait Implementations§
impl RefUnwindSafe for CallerOptions
impl Send for CallerOptions
impl Sync for CallerOptions
impl Unpin for CallerOptions
impl UnwindSafe for CallerOptions
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.