#[non_exhaustive]pub struct LivekitFocus {
pub alias: Option<String>,
pub url: Option<String>,
pub server_name: Option<OwnedServerName>,
pub service_url: Option<String>,
}events and unstable-msc3401 only.Expand description
The struct to describe LiveKit as a preferred_foci.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.alias: Option<String>Newer versions of Element Call won’t fill this field anymore.
The alias where the LiveKit sessions can be reached.
url: Option<String>The WebSocket URL of the LiveKit SFU.
server_name: Option<OwnedServerName>The server name of the homeserver that grants access to the LiveKit SFU.
This must be set when publishing on an SFU of a different homeserver than the sender’s. If
this is None, the SFU belongs to the sender’s homeserver.
service_url: Option<String>Use url instead unless you require backwards compatibility with older versions of MSC4195.
The URL of the JWT service for the LiveKit instance.
Implementations§
Source§impl LivekitFocus
impl LivekitFocus
Sourcepub fn new(url: String) -> LivekitFocus
pub fn new(url: String) -> LivekitFocus
Initialize a LivekitFocus with the given SFU URL.
§Arguments
url- The WebSocket URL of the LiveKit SFU.
Sourcepub fn with_service_url(service_url: String) -> LivekitFocus
👎Deprecated: Use LivekitFocus::new() instead unless you require backwards compatibility with older versions of MSC4195.
pub fn with_service_url(service_url: String) -> LivekitFocus
Use LivekitFocus::new() instead unless you require backwards compatibility with older versions of MSC4195.
Initialize a LivekitFocus with the given JWT service URL.
§Arguments
service_url- The URL of the JWT service for the LiveKit instance.
Trait Implementations§
Source§impl Clone for LivekitFocus
impl Clone for LivekitFocus
Source§fn clone(&self) -> LivekitFocus
fn clone(&self) -> LivekitFocus
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LivekitFocus
impl Debug for LivekitFocus
Source§impl<'de> Deserialize<'de> for LivekitFocus
impl<'de> Deserialize<'de> for LivekitFocus
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LivekitFocus, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LivekitFocus, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for LivekitFocus
Source§impl PartialEq for LivekitFocus
impl PartialEq for LivekitFocus
Source§impl Serialize for LivekitFocus
impl Serialize for LivekitFocus
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for LivekitFocus
Auto Trait Implementations§
impl Freeze for LivekitFocus
impl RefUnwindSafe for LivekitFocus
impl Send for LivekitFocus
impl Sync for LivekitFocus
impl Unpin for LivekitFocus
impl UnsafeUnpin for LivekitFocus
impl UnwindSafe for LivekitFocus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> DropFlavorWrapper<T> for T
impl<T> DropFlavorWrapper<T> for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.