pub enum ConferenceParticipantActionsDocument {
Menu(CiscoIpPhoneMenu),
IconMenu(CiscoIpPhoneIconMenu),
}Expand description
Participant-specific conference actions in either supported menu family.
Variants§
Menu(CiscoIpPhoneMenu)
IconMenu(CiscoIpPhoneIconMenu)
Implementations§
Source§impl ConferenceParticipantActionsDocument
impl ConferenceParticipantActionsDocument
Sourcepub fn new(
conference_id: ConferenceId,
participant: &ConferenceListEntry,
removable: bool,
demotable: bool,
family: ConferenceMenuFamily,
) -> Result<Self, PhoneXmlError>
pub fn new( conference_id: ConferenceId, participant: &ConferenceListEntry, removable: bool, demotable: bool, family: ConferenceMenuFamily, ) -> Result<Self, PhoneXmlError>
Renders the actions currently permitted for one participant.
removable and demotable let session policy suppress actions even
when the participant state would otherwise permit them.
Sourcepub fn to_xml(&self) -> Result<String, PhoneXmlError>
pub fn to_xml(&self) -> Result<String, PhoneXmlError>
Serializes the rendered menu within CONFERENCE_LIST_MAX_BYTES.
Sourcepub fn from_xml(
document: &[u8],
family: ConferenceMenuFamily,
) -> Result<Self, PhoneXmlError>
pub fn from_xml( document: &[u8], family: ConferenceMenuFamily, ) -> Result<Self, PhoneXmlError>
Parses participant actions using the caller-selected menu family.
Sourcepub fn actions(&self) -> impl Iterator<Item = ConferenceListAction> + '_
pub fn actions(&self) -> impl Iterator<Item = ConferenceListAction> + '_
Iterates recognized callback actions in display order.
Trait Implementations§
Source§impl Clone for ConferenceParticipantActionsDocument
impl Clone for ConferenceParticipantActionsDocument
Source§fn clone(&self) -> ConferenceParticipantActionsDocument
fn clone(&self) -> ConferenceParticipantActionsDocument
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 Eq for ConferenceParticipantActionsDocument
impl StructuralPartialEq for ConferenceParticipantActionsDocument
Auto Trait Implementations§
impl Freeze for ConferenceParticipantActionsDocument
impl RefUnwindSafe for ConferenceParticipantActionsDocument
impl Send for ConferenceParticipantActionsDocument
impl Sync for ConferenceParticipantActionsDocument
impl Unpin for ConferenceParticipantActionsDocument
impl UnsafeUnpin for ConferenceParticipantActionsDocument
impl UnwindSafe for ConferenceParticipantActionsDocument
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