Skip to content

Commit 8a169b1

Browse files
committed
feat: add protocol method to ServiceBinding
1 parent 3816446 commit 8a169b1

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

packages/primitives/src/service_binding.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@ impl ServiceBinding {
8383
Ok(Self { protocol, bind_address })
8484
}
8585

86+
/// Returns the protocol used by the service.
87+
#[must_use]
88+
pub fn protocol(&self) -> Protocol {
89+
self.protocol.clone()
90+
}
91+
8692
#[must_use]
8793
pub fn bind_address(&self) -> SocketAddr {
8894
self.bind_address

0 commit comments

Comments
 (0)