pub struct ClientNegotiation { /* private fields */ }Expand description
Client compatibility capabilities sent before subscription or manifest fetch.
Implementations§
Source§impl ClientNegotiation
Builder helpers on ClientNegotiation.
impl ClientNegotiation
Builder helpers on ClientNegotiation.
Sourcepub fn preferred_track_str(&self) -> Option<&str>
pub fn preferred_track_str(&self) -> Option<&str>
Returns the optional preferred compatibility track name.
§Returns
Option<&str>- Preferred track name if specified.
Sourcepub fn with_preferred_track(self, track: String) -> Self
pub fn with_preferred_track(self, track: String) -> Self
Source§impl ClientNegotiation
impl ClientNegotiation
pub fn get_protocol_version(&self) -> u32
pub fn get_mut_protocol_version(&mut self) -> &mut u32
pub fn set_protocol_version(&mut self, val: u32) -> &mut Self
pub fn get_host_abi(&self) -> u32
pub fn get_mut_host_abi(&mut self) -> &mut u32
pub fn set_host_abi(&mut self, val: u32) -> &mut Self
pub fn get_delivery_mode(&self) -> DeliveryChannelMode
pub fn get_mut_delivery_mode(&mut self) -> &mut DeliveryChannelMode
pub fn set_delivery_mode(&mut self, val: DeliveryChannelMode) -> &mut Self
pub fn get_capabilities(&self) -> &Vec<String>
pub fn get_mut_capabilities(&mut self) -> &mut Vec<String>
pub fn set_capabilities(&mut self, val: Vec<String>) -> &mut Self
pub fn get_mut_preferred_track(&mut self) -> &mut Option<String>
pub fn set_preferred_track(&mut self, val: Option<String>) -> &mut Self
Source§impl ClientNegotiation
impl ClientNegotiation
pub fn new( protocol_version: u32, host_abi: u32, delivery_mode: DeliveryChannelMode, ) -> Self
Trait Implementations§
Source§impl Clone for ClientNegotiation
impl Clone for ClientNegotiation
Source§impl Debug for ClientNegotiation
impl Debug for ClientNegotiation
Source§impl Default for ClientNegotiation
impl Default for ClientNegotiation
Source§impl<'de> Deserialize<'de> for ClientNegotiation
impl<'de> Deserialize<'de> for ClientNegotiation
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
impl Eq for ClientNegotiation
Source§impl PartialEq for ClientNegotiation
impl PartialEq for ClientNegotiation
Source§impl Serialize for ClientNegotiation
impl Serialize for ClientNegotiation
impl StructuralPartialEq for ClientNegotiation
Auto Trait Implementations§
impl Forget for ClientNegotiation
impl Freeze for ClientNegotiation
impl Move for ClientNegotiation
impl RefUnwindSafe for ClientNegotiation
impl Send for ClientNegotiationwhere
RawVecInner: Send,
impl Sync for ClientNegotiationwhere
RawVecInner: Sync,
impl Unpin for ClientNegotiation
impl UnsafeUnpin for ClientNegotiationwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for ClientNegotiationwhere
RawVecInner: UnwindSafe,
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