Struct rnp::RnpStubServerConfig
source · [−]pub struct RnpStubServerConfig {
pub protocol: RnpSupportedProtocol,
pub server_address: SocketAddr,
pub report_interval: Duration,
pub close_on_accept: bool,
pub write_chunk_size: usize,
pub write_count_limit: u32,
pub sleep_before_write: Duration,
pub wait_before_disconnect: Duration,
}
Fields
protocol: RnpSupportedProtocol
server_address: SocketAddr
report_interval: Duration
close_on_accept: bool
write_chunk_size: usize
write_count_limit: u32
sleep_before_write: Duration
wait_before_disconnect: Duration
Trait Implementations
sourceimpl Clone for RnpStubServerConfig
impl Clone for RnpStubServerConfig
sourcefn clone(&self) -> RnpStubServerConfig
fn clone(&self) -> RnpStubServerConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RnpStubServerConfig
impl Debug for RnpStubServerConfig
sourceimpl PartialEq<RnpStubServerConfig> for RnpStubServerConfig
impl PartialEq<RnpStubServerConfig> for RnpStubServerConfig
sourcefn eq(&self, other: &RnpStubServerConfig) -> bool
fn eq(&self, other: &RnpStubServerConfig) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl StructuralPartialEq for RnpStubServerConfig
Auto Trait Implementations
impl RefUnwindSafe for RnpStubServerConfig
impl Send for RnpStubServerConfig
impl Sync for RnpStubServerConfig
impl Unpin for RnpStubServerConfig
impl UnwindSafe for RnpStubServerConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more