pub enum PhoneBackgroundControlDocument {
Set(CiscoIpPhoneSetBackground),
Preview(CiscoIpPhoneSetBackgroundPreview),
}Expand description
Either application document accepted by the background-control service.
Variants§
Implementations§
Source§impl PhoneBackgroundControlDocument
impl PhoneBackgroundControlDocument
Sourcepub fn from_xml(document: &[u8]) -> Result<Self, PhoneXmlError>
pub fn from_xml(document: &[u8]) -> Result<Self, PhoneXmlError>
Detects and parses either supported background-control root.
Sourcepub fn to_xml(&self) -> Result<String, PhoneXmlError>
pub fn to_xml(&self) -> Result<String, PhoneXmlError>
Serializes the selected document using the default control byte bound.
Sourcepub fn to_xml_with_limit(
&self,
maximum_bytes: usize,
) -> Result<String, PhoneXmlError>
pub fn to_xml_with_limit( &self, maximum_bytes: usize, ) -> Result<String, PhoneXmlError>
Serializes the selected document within a caller-selected byte limit.
Trait Implementations§
Source§impl Clone for PhoneBackgroundControlDocument
impl Clone for PhoneBackgroundControlDocument
Source§fn clone(&self) -> PhoneBackgroundControlDocument
fn clone(&self) -> PhoneBackgroundControlDocument
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 PhoneBackgroundControlDocument
impl StructuralPartialEq for PhoneBackgroundControlDocument
Auto Trait Implementations§
impl Freeze for PhoneBackgroundControlDocument
impl RefUnwindSafe for PhoneBackgroundControlDocument
impl Send for PhoneBackgroundControlDocument
impl Sync for PhoneBackgroundControlDocument
impl Unpin for PhoneBackgroundControlDocument
impl UnsafeUnpin for PhoneBackgroundControlDocument
impl UnwindSafe for PhoneBackgroundControlDocument
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