pub struct ServiceObjGroupBuilder { /* private fields */ }Expand description
Builder that helps construct ServiceObjGroup instances.
Implementations§
Source§impl ServiceObjGroupBuilder
impl ServiceObjGroupBuilder
pub fn new(name: &str) -> Result<Self, String>
Sourcepub fn with_obj(self, obj: ServiceObj) -> Result<Self, String>
pub fn with_obj(self, obj: ServiceObj) -> Result<Self, String>
Add a pre-built service object. Returned builder allows chaining.
Sourcepub fn with_service(
self,
name: &str,
value: TransportService,
) -> Result<Self, String>
pub fn with_service( self, name: &str, value: TransportService, ) -> Result<Self, String>
Add a named transport definition.
Sourcepub fn with_parsed_service(
self,
name: &str,
value: &str,
) -> Result<Self, String>
pub fn with_parsed_service( self, name: &str, value: &str, ) -> Result<Self, String>
Parse a service string such as tcp/443 and add it under name.
Sourcepub fn build(self) -> ServiceObjGroup
pub fn build(self) -> ServiceObjGroup
Finish building the group.
Auto Trait Implementations§
impl Freeze for ServiceObjGroupBuilder
impl RefUnwindSafe for ServiceObjGroupBuilder
impl Send for ServiceObjGroupBuilder
impl Sync for ServiceObjGroupBuilder
impl Unpin for ServiceObjGroupBuilder
impl UnwindSafe for ServiceObjGroupBuilder
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