pub struct DomainSocketListenerBuilder { /* private fields */ }Expand description
Builder for DomainSocketListener
Implementations§
Source§impl DomainSocketListenerBuilder
impl DomainSocketListenerBuilder
Sourcepub fn with_timeout(self, timeout: Duration) -> Self
pub fn with_timeout(self, timeout: Duration) -> Self
Add a timeout on the Unix Domain Socket used
Sourcepub fn with_socket_path(self, socket_path: Option<PathBuf>) -> Self
pub fn with_socket_path(self, socket_path: Option<PathBuf>) -> Self
Specify the Unix Domain Socket path
Sourcepub fn build(self) -> Result<DomainSocketListener>
pub fn build(self) -> Result<DomainSocketListener>
Build the builder into the listener
Trait Implementations§
Source§impl Clone for DomainSocketListenerBuilder
impl Clone for DomainSocketListenerBuilder
Source§fn clone(&self) -> DomainSocketListenerBuilder
fn clone(&self) -> DomainSocketListenerBuilder
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 Debug for DomainSocketListenerBuilder
impl Debug for DomainSocketListenerBuilder
Source§impl Default for DomainSocketListenerBuilder
impl Default for DomainSocketListenerBuilder
Source§fn default() -> DomainSocketListenerBuilder
fn default() -> DomainSocketListenerBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DomainSocketListenerBuilder
impl RefUnwindSafe for DomainSocketListenerBuilder
impl Send for DomainSocketListenerBuilder
impl Sync for DomainSocketListenerBuilder
impl Unpin for DomainSocketListenerBuilder
impl UnwindSafe for DomainSocketListenerBuilder
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