pub struct StationSessionContext {
pub protocol: ProtocolVersion,
pub features: PhoneFeatures,
}Expand description
Negotiated inputs that select station-facing message layouts.
Fields§
§protocol: ProtocolVersionNegotiated frame and payload version.
features: PhoneFeaturesStation feature bits that can select layouts independently of version.
Implementations§
Source§impl StationSessionContext
impl StationSessionContext
Sourcepub const fn new(protocol: ProtocolVersion, features: PhoneFeatures) -> Self
pub const fn new(protocol: ProtocolVersion, features: PhoneFeatures) -> Self
Creates the layout-selection context for a registered station session.
Sourcepub const fn uses_dynamic_general_ui(self) -> bool
pub const fn uses_dynamic_general_ui(self) -> bool
Reports whether general UI responses use their dynamic string layouts.
Sourcepub const fn uses_dynamic_feature_status(self) -> bool
pub const fn uses_dynamic_feature_status(self) -> bool
Reports whether feature status uses its dynamic response identifier.
Sourcepub const fn uses_dynamic_speed_dial_status(self) -> bool
pub const fn uses_dynamic_speed_dial_status(self) -> bool
Reports whether speed-dial status uses the dynamic identifier and variable-string payload selected by the registered station session.
Sourcepub const fn dynamic_call_info_layout(self) -> DynamicCallInfoLayout
pub const fn dynamic_call_info_layout(self) -> DynamicCallInfoLayout
Returns the call-info string layout selected by the negotiated version.
Sourcepub const fn dynamic_service_url_string_count(self) -> usize
pub const fn dynamic_service_url_string_count(self) -> usize
Returns the dynamic service-URL string count selected by the session.
Trait Implementations§
Source§impl Clone for StationSessionContext
impl Clone for StationSessionContext
Source§fn clone(&self) -> StationSessionContext
fn clone(&self) -> StationSessionContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StationSessionContext
Source§impl Debug for StationSessionContext
impl Debug for StationSessionContext
impl Eq for StationSessionContext
Source§impl From<ProtocolVersion> for StationSessionContext
impl From<ProtocolVersion> for StationSessionContext
Source§fn from(protocol: ProtocolVersion) -> Self
fn from(protocol: ProtocolVersion) -> Self
Converts to this type from the input type.
Source§impl Hash for StationSessionContext
impl Hash for StationSessionContext
Source§impl PartialEq for StationSessionContext
impl PartialEq for StationSessionContext
impl StructuralPartialEq for StationSessionContext
Auto Trait Implementations§
impl Freeze for StationSessionContext
impl RefUnwindSafe for StationSessionContext
impl Send for StationSessionContext
impl Sync for StationSessionContext
impl Unpin for StationSessionContext
impl UnsafeUnpin for StationSessionContext
impl UnwindSafe for StationSessionContext
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