pub struct GatewayOptions {
pub vox_http_base: String,
pub api_key: Option<String>,
pub path: String,
pub on_session_created: Option<Arc<dyn Fn(GatewaySessionContext) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send>> + Send + Sync>>,
pub on_session_closed: Option<Arc<dyn Fn(GatewayClosedContext) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send>> + Send + Sync>>,
pub on_error: Option<Arc<dyn Fn(String) + Send + Sync>>,
}Fields§
§vox_http_base: String§api_key: Option<String>§path: String§on_session_created: Option<Arc<dyn Fn(GatewaySessionContext) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send>> + Send + Sync>>§on_session_closed: Option<Arc<dyn Fn(GatewayClosedContext) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send>> + Send + Sync>>§on_error: Option<Arc<dyn Fn(String) + Send + Sync>>Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for GatewayOptions
impl !UnwindSafe for GatewayOptions
impl Freeze for GatewayOptions
impl Send for GatewayOptions
impl Sync for GatewayOptions
impl Unpin for GatewayOptions
impl UnsafeUnpin for GatewayOptions
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