pub struct ListenerOptions {
pub socket: SocketOptions,
}
Fields§
§socket: SocketOptions
Implementations§
Source§impl ListenerOptions
impl ListenerOptions
pub fn new( local: impl TryInto<SocketAddress>, ) -> Result<Valid<Self>, OptionsError>
pub fn with( local: impl TryInto<SocketAddress>, socket: SocketOptions, ) -> Result<Valid<ListenerOptions>, OptionsError>
Trait Implementations§
Source§impl Clone for ListenerOptions
impl Clone for ListenerOptions
Source§fn clone(&self) -> ListenerOptions
fn clone(&self) -> ListenerOptions
Returns a duplicate 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 ListenerOptions
impl CompositeValidation for ListenerOptions
fn is_valid_composite(&self) -> Result<(), <Self as Validation>::Error>
Source§impl Debug for ListenerOptions
impl Debug for ListenerOptions
Source§impl OptionsOf<Connect> for ListenerOptions
impl OptionsOf<Connect> for ListenerOptions
fn set_options(&mut self, value: Connect)
Source§impl OptionsOf<Encryption> for ListenerOptions
impl OptionsOf<Encryption> for ListenerOptions
fn set_options(&mut self, value: Encryption)
Source§impl OptionsOf<Receiver> for ListenerOptions
impl OptionsOf<Receiver> for ListenerOptions
fn set_options(&mut self, value: Receiver)
Source§impl OptionsOf<Sender> for ListenerOptions
impl OptionsOf<Sender> for ListenerOptions
fn set_options(&mut self, value: Sender)
Source§impl OptionsOf<Session> for ListenerOptions
impl OptionsOf<Session> for ListenerOptions
fn set_options(&mut self, value: Session)
Source§impl OptionsOf<SocketOptions> for ListenerOptions
impl OptionsOf<SocketOptions> for ListenerOptions
fn set_options(&mut self, value: SocketOptions)
Source§impl PartialEq for ListenerOptions
impl PartialEq for ListenerOptions
Source§impl Validation for ListenerOptions
impl Validation for ListenerOptions
impl Eq for ListenerOptions
impl StructuralPartialEq for ListenerOptions
Auto Trait Implementations§
impl Freeze for ListenerOptions
impl RefUnwindSafe for ListenerOptions
impl Send for ListenerOptions
impl Sync for ListenerOptions
impl Unpin for ListenerOptions
impl UnwindSafe for ListenerOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.