pub struct CallProtocol {
pub udp_p2p: bool,
pub udp_reflector: bool,
pub min_layer: i32,
pub max_layer: i32,
pub library_versions: Vec<String>,
}
Expand description
Specifies the supported call protocols
Fields§
§udp_p2p: bool
True, if UDP peer-to-peer connections are supported
udp_reflector: bool
True, if connection through UDP reflectors is supported
min_layer: i32
The minimum supported API layer; use 65
max_layer: i32
The maximum supported API layer; use 92
library_versions: Vec<String>
List of supported tgcalls versions
Trait Implementations§
Source§impl Clone for CallProtocol
impl Clone for CallProtocol
Source§fn clone(&self) -> CallProtocol
fn clone(&self) -> CallProtocol
Returns a duplicate of the value. Read more
1.0.0 · 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 CallProtocol
impl Debug for CallProtocol
Source§impl Default for CallProtocol
impl Default for CallProtocol
Source§fn default() -> CallProtocol
fn default() -> CallProtocol
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CallProtocol
impl<'de> Deserialize<'de> for CallProtocol
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CallProtocol
impl PartialEq for CallProtocol
Source§impl Serialize for CallProtocol
impl Serialize for CallProtocol
impl StructuralPartialEq for CallProtocol
Auto Trait Implementations§
impl Freeze for CallProtocol
impl RefUnwindSafe for CallProtocol
impl Send for CallProtocol
impl Sync for CallProtocol
impl Unpin for CallProtocol
impl UnwindSafe for CallProtocol
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