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
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.