pub struct CloudflaredSource {
pub port: u16,
}Expand description
Cloudflared — adopt-or-spawn a cloudflared quick tunnel pointed at
Core’s local port. start() spawns cloudflared tunnel --url http://localhost:<port>, parses the assigned https://<sub>.trycloudflare.com
base from its output, and holds the child alive for the process lifetime
(dropping the child tears the tunnel down). public_url() returns that base
joined with WEBHOOK_PATH. No account/login is needed — quick tunnels are
anonymous and ephemeral, which is exactly the BYO-public-URL contract this seam
needs. Requires the cloudflared binary on PATH; spawn failure errors clearly.
Fields§
§port: u16Core’s local bind port, the target the tunnel forwards to.
Implementations§
Trait Implementations§
Source§impl Clone for CloudflaredSource
impl Clone for CloudflaredSource
Source§fn clone(&self) -> CloudflaredSource
fn clone(&self) -> CloudflaredSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CloudflaredSource
impl Debug for CloudflaredSource
Source§impl WebhookIngress for CloudflaredSource
impl WebhookIngress for CloudflaredSource
Source§fn kind(&self) -> IngressKind
fn kind(&self) -> IngressKind
Which backend this is.
Source§async fn start(&self) -> Result<()>
async fn start(&self) -> Result<()>
Start (or adopt) the backend so webhooks can arrive. May be a no-op (the
OwnRelay case) or error gracefully when the backing infra is absent.
Source§async fn public_url(&self) -> Result<String>
async fn public_url(&self) -> Result<String>
The public URL Composio should POST to (ends in
WEBHOOK_PATH).Auto Trait Implementations§
impl Freeze for CloudflaredSource
impl RefUnwindSafe for CloudflaredSource
impl Send for CloudflaredSource
impl Sync for CloudflaredSource
impl Unpin for CloudflaredSource
impl UnsafeUnpin for CloudflaredSource
impl UnwindSafe for CloudflaredSource
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