pub struct ServerBuilder<A, B>where
A: Authenticator,
B: Bicrypter,{ /* private fields */ }Expand description
Builder for Server.
Implementations§
Source§impl<A, B> ServerBuilder<A, B>
impl<A, B> ServerBuilder<A, B>
Sourcepub fn packet_ttl(&mut self, value: Duration) -> &mut Self
pub fn packet_ttl(&mut self, value: Duration) -> &mut Self
TTL to collect all packets for a msg
Sourcepub fn authenticator(&mut self, value: A) -> &mut Self
pub fn authenticator(&mut self, value: A) -> &mut Self
Used to sign & verify msgs
Sourcepub fn transport(&mut self, value: Transport) -> &mut Self
pub fn transport(&mut self, value: Transport) -> &mut Self
Transportation mechanism & address to listen on
Sourcepub fn cleanup_interval(&mut self, value: Duration) -> &mut Self
pub fn cleanup_interval(&mut self, value: Duration) -> &mut Self
Interval at which cleanup of dangling resources is performed
Sourcepub fn file_ttl(&mut self, value: Duration) -> &mut Self
pub fn file_ttl(&mut self, value: Duration) -> &mut Self
TTL for an untouched, open file before it is closed during cleanup
Sourcepub fn proc_ttl(&mut self, value: Duration) -> &mut Self
pub fn proc_ttl(&mut self, value: Duration) -> &mut Self
TTL for an untouched, running process before it is killed during cleanup
Sourcepub fn dead_proc_ttl(&mut self, value: Duration) -> &mut Self
pub fn dead_proc_ttl(&mut self, value: Duration) -> &mut Self
TTL for an untouched, dead process before it is removed during cleanup
Trait Implementations§
Source§impl<A, B> Clone for ServerBuilder<A, B>
impl<A, B> Clone for ServerBuilder<A, B>
Source§fn clone(&self) -> ServerBuilder<A, B>
fn clone(&self) -> ServerBuilder<A, B>
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<A, B> Default for ServerBuilder<A, B>
impl<A, B> Default for ServerBuilder<A, B>
Source§fn default() -> ServerBuilder<A, B>
fn default() -> ServerBuilder<A, B>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<A, B> Freeze for ServerBuilder<A, B>
impl<A, B> RefUnwindSafe for ServerBuilder<A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for ServerBuilder<A, B>
impl<A, B> Sync for ServerBuilder<A, B>
impl<A, B> Unpin for ServerBuilder<A, B>
impl<A, B> UnsafeUnpin for ServerBuilder<A, B>where
A: UnsafeUnpin,
B: UnsafeUnpin,
impl<A, B> UnwindSafe for ServerBuilder<A, B>where
A: UnwindSafe,
B: UnwindSafe,
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