pub struct MaxBytes {
    pub value: NonZeroU32,
}Expand description
Maximum size of any first-level stream elements (including stanzas), in bytes the announcing entity is willing to accept.
Fields§
§value: NonZeroU32The number of bytes.
Trait Implementations§
Source§impl AsXml for MaxBytes
 
impl AsXml for MaxBytes
Source§impl FromXml for MaxBytes
 
impl FromXml for MaxBytes
Source§fn from_events(
    name: QName,
    attrs: AttrMap,
    ctx: &Context<'_>,
) -> Result<Self::Builder, FromEventsError>
 
fn from_events( name: QName, attrs: AttrMap, ctx: &Context<'_>, ) -> Result<Self::Builder, FromEventsError>
Attempt to initiate the streamed construction of this struct from XML. Read more
Source§fn xml_name_matcher() -> XmlNameMatcher<'static>
 
fn xml_name_matcher() -> XmlNameMatcher<'static>
Return a predicate which determines if 
Self may be parsed from
a given XML element. Read moreSource§impl TryFrom<Element> for MaxBytes
 
impl TryFrom<Element> for MaxBytes
Source§type Error = FromElementError
 
type Error = FromElementError
The type returned in the event of a conversion error.
impl StructuralPartialEq for MaxBytes
Auto Trait Implementations§
impl Freeze for MaxBytes
impl RefUnwindSafe for MaxBytes
impl Send for MaxBytes
impl Sync for MaxBytes
impl Unpin for MaxBytes
impl UnwindSafe for MaxBytes
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