pub struct ServiceGroupBuilder { /* private fields */ }Expand description
Builder helper for constructing service groups through chained calls.
Implementations§
Source§impl ServiceGroupBuilder
impl ServiceGroupBuilder
pub fn new(name: &str) -> Result<Self, String>
Sourcepub fn with_service<S>(self, entry: S) -> Result<Self, String>where
S: IntoServiceObj,
pub fn with_service<S>(self, entry: S) -> Result<Self, String>where
S: IntoServiceObj,
Include a service object or builder entry (created via service::tcp or friends).
pub fn build(self) -> Result<ServiceObjGroup, String>
Trait Implementations§
Source§impl Clone for ServiceGroupBuilder
impl Clone for ServiceGroupBuilder
Source§fn clone(&self) -> ServiceGroupBuilder
fn clone(&self) -> ServiceGroupBuilder
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 moreAuto Trait Implementations§
impl Freeze for ServiceGroupBuilder
impl RefUnwindSafe for ServiceGroupBuilder
impl Send for ServiceGroupBuilder
impl Sync for ServiceGroupBuilder
impl Unpin for ServiceGroupBuilder
impl UnwindSafe for ServiceGroupBuilder
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