pub struct IngressClient { /* private fields */ }Implementations§
Source§impl IngressClient
impl IngressClient
Sourcepub fn with_api_key(host: &str, api_key: &str, api_secret: &str) -> Self
pub fn with_api_key(host: &str, api_key: &str, api_secret: &str) -> Self
Authenticates with an API key and secret, signing a short-lived token per request.
Sourcepub fn with_token(host: &str, token: &str) -> Self
pub fn with_token(host: &str, token: &str) -> Self
Authenticates with a pre-signed token, sent verbatim on every request.
Sourcepub fn new(host: &str) -> ServiceResult<Self>
pub fn new(host: &str) -> ServiceResult<Self>
Reads the API key and secret from the LIVEKIT_API_KEY and
LIVEKIT_API_SECRET environment variables.
Sourcepub fn with_failover(self, enabled: bool) -> Self
pub fn with_failover(self, enabled: bool) -> Self
Enables or disables region failover (enabled by default). Failover only engages for LiveKit Cloud hosts.
Sourcepub fn with_request_timeout(self, timeout: Duration) -> Self
pub fn with_request_timeout(self, timeout: Duration) -> Self
Overrides the default per-request timeout (10s) for calls on this client.
pub async fn create_ingress( &self, input_type: IngressInput, options: CreateIngressOptions, ) -> ServiceResult<IngressInfo>
pub async fn update_ingress( &self, ingress_id: &str, options: UpdateIngressOptions, ) -> ServiceResult<IngressInfo>
pub async fn list_ingress( &self, filter: IngressListFilter, ) -> ServiceResult<Vec<IngressInfo>>
pub async fn delete_ingress( &self, ingress_id: &str, ) -> ServiceResult<IngressInfo>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for IngressClient
impl !UnwindSafe for IngressClient
impl Freeze for IngressClient
impl Send for IngressClient
impl Sync for IngressClient
impl Unpin for IngressClient
impl UnsafeUnpin for IngressClient
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